Questions tagged [automated-testing]

Use for questions involving problems with automated tests. Relevant for designing test automation, debugging test automation, automation tooling questions, and questions about when it is appropriate to automate. Questions regarding specific tools should tag those tools as well.

Filter by
Sorted by
Tagged with
1
vote
1answer
12 views

In unit tests, should I check all null and invalid child properties in the input arguments that cause error and force developers too?

In a large application, I have a lot of methods with input arguments that each argument is a model with nested models (as you see in the image). You see that I have written some conditional codes and ...
0
votes
1answer
17 views

Screenshot not found error in protractor

I am getting broken image for screenshot. Unable to take screenshot in protractor framework. Please anyone help on this. My code: testconfig.js file var fs = require('fs-extra'); var today = new Date()...
0
votes
1answer
24 views

Cucumber - Accessing injected context in After scenario hook

I'm attempting to refactor a test automation framework I have inherited (Java, Selenide, Cucumber) from one that uses static global state for test data, to context injected test data using ...
0
votes
2answers
69 views

Apart from Selenium what other automation tools are valuable to learn? [closed]

I have worked on Selenium, Java, testNG, maven, cucumber based automation framework. But I am not advancing in my career as I just can work with Selenium. What other tools should I have in my ...
0
votes
1answer
25 views

How to get list of disabled elements on page using Cypress

How to get a list of disabled elements on a page using Cypress? Thanks in advance.
2
votes
2answers
34 views

How to effectively test randomness in item ordering?

We have a function that introduces randomness in item ordering, e.g.: the order in which a number of given items are presented to a user is random For this scenario, there needs to be automated test,...
1
vote
2answers
71 views

Is it necessary to Assert web page title in every case?

I am writing a script in Selenium and TestNG to automate Add User profile pages. Now, when I land on every new page, then do I need to write Assert.equals("add user profile", driver.gettitle(...
0
votes
1answer
26 views

Test Coverage Report in Cypress

I write my test cases in Confluence and then automate them in Cypress. I was wondering is there any way I can get the test coverage report. I already looked into Istanbul but it is for code coverage. ...
-1
votes
2answers
19 views

How to automate dynamic ui from json in selenium

I have a UI that is rendered against the provided JSON in DB. If I change in the JSON how would I know the fields in UI How I do this in selenium
1
vote
3answers
73 views

How can automation help a tester in creative & useful ways to perform testing more effectively & efficiently?

How can automation help a tester in creative & useful ways to perform testing more effectively & efficiently? ( other than automating manual test cases)
1
vote
1answer
32 views

Is Cucumber Scenario equivalent to a Java Class?

@Add User Scenario: Add a new User profile in the System Given user is on the Add User profile page Then Add a new user profile in the system Then verify that user has been added successfully Now, ...
0
votes
0answers
20 views

I am not able to open Extent report that was generated at a specific timestamp when the Test ends?

I am trying to run a Cucumber Selenium project which is written in Java and use Test NG to run the Suite. Now, in the @AfterSuite Method, im trying to popup the Extent Html and pdf report both ...
1
vote
1answer
26 views

What are good strategies to test for gaps in automated data migrations between releases?

Given the following example MongoDB document in a collection person, which goes through different processing steps: { 'status': 'Step 2 is finished' 'name': 'Some Name' 'affiliation': 'Gang ...
0
votes
3answers
49 views
0
votes
1answer
22 views

Why dont we use the main() method in TestNG class?

public class Tests{ @Test public void run(){ sop("this is test method 1"); } } How will Jvm know about entry point of the program? 🤔
0
votes
2answers
54 views

Whats the best approach to select elements for automated testing?

I read following in cypress's best practices. Anti-Pattern: Using highly brittle selectors that are subject to change. Best Practice: Use data-* attributes to provide context to your selectors and ...
0
votes
0answers
11 views

What is fast reset in appium, which I am getting in appium server logs and how to avoid it

What is fast reset in appium, which I am getting in appium server logs and how to avoid it...
0
votes
0answers
24 views

Is there an integration solution to integrate OWASP ZAP and Testlink with each other?

Starting point: We are currently using OWASP Zap for our security test within a CI/CD pipeline based on Docker. At the same time, we have Python based test cases that we execute within an API based ...
1
vote
1answer
95 views

Vulnerability regression testing in an agile environment

Starting point: We used different solutions in the test team to test our websites for vulnerabilities in different ways. In doing so, we naturally also want to retest the bugs anchored in the backlog ...
0
votes
0answers
21 views

Jenkin fail without explanation running tests process exitcode 143

I have multiple test suites running on jenkins, however there is only one which never completes. It gets interrupted but never shows why The only thing I see in my console of the build is this: 04:13:...
1
vote
3answers
66 views

How to open outlook and click on the link that is there in the mail using seleniumn

In my application I need to send a confirmation after which an mail will arrive to my Outlook which I need to open and click on the link which is sent in the mail. Can someone please let me know if ...
0
votes
0answers
40 views

Try catch not catching NoSuchElementException

kinda confused. I have a method I created to help me handle various scenarios public void WaitHandler(IWebElement element) { int i = 0; WebDriverWait wait = new ...
2
votes
2answers
95 views

Passing the UI data from one test to another

I work with Playwright, Mocha and Chai. In the application that I am currently testing I need to automate the following scenario. When a user logs into the application a dashboard with assigned list ...
1
vote
1answer
52 views

How are you testing configuration changes?

I am curious if folks are testing configuration changes in applications. For example, I have a Spring Boot app that pulls its configurations from a local properties file at build time and from Spring ...
2
votes
5answers
182 views

If your manager asks you to reduce the test execution time which you can't, how to convince your manager?

There is a situation where our automation test suite is taking nearly 8 hours to execute 150 test cases. Because there are lengthy steps which cannot be reduced or remove. And my manager ask me to ...
-2
votes
2answers
65 views

how to detect a real front end issue?

If I am testing a website, perform a "zoom in" action, and notice that the features are no longer in their correct places (the boundaries have changed), should I consider this behavior a ...
0
votes
1answer
33 views

Automated testing confirmation that item went to an AWS SQS queue

We're considering creating automated tests that confirm that specific items made it onto an SQS queue. Note that that sentence said "made" it - this would be a test that can be run on a live ...
0
votes
1answer
102 views

Starting testing from scratch in existing software project

The question is: "How to implement testing from scratch? How to structure things?" I have taken the position of Head of QA in a start-up company. The situation is that they have a software ...
0
votes
1answer
42 views

how to add "\n" to the method

I have the below method: PUBLIC methodname(WebDriver driver,formEntryMap<String,String>,String Colkey) { String Xpath = This will have the xpath of the input text box inputfieldEntry(driver,...
1
vote
1answer
38 views

How to access dependencies from test class

I'm wondering what some other options are for accessing the test automation framework dependencies from my test classes. Right now I have a layered architecture: Framework layer (contains all shared ...
0
votes
2answers
104 views

How can I run a login test for 100 users at the same time using Selenium, TestNG and Cucumber? [closed]

I am a newbie in Automation testing. I have a list of 100 users in a excel spreadsheet: User1: userid1/password1 User2: userid2/password2 ... and so on. I need to create a script and make all 100 ...
1
vote
2answers
52 views

Playwright: Using ReqExp inside of the URL while trying to check PUT request via page.waitForResponse()

Currently in one of my test I am trying to check PUT request status. In one of the user scenarios when a user clicks Confirm button a PUT request is sent and if all good status code 200 is present in ...
0
votes
0answers
92 views

The ChromeDriver could not be found on the current PATH

I wrote a test suite for a web application by using Selenium IDE and I used ChromeDriver to test the application, the code I used is as followed. C:\>set APPLITOOLS_API_KEY=...
0
votes
1answer
56 views

android : How to fix? - ConversationToQueryExtension.isEnabledForHostApp():252 Conv2Query not enabled due to current app not in whitelist

I am trying to login android application on emulator hosted on Windows OS. Facing below error : I/ConversationToQueryExtension: ConversationToQueryExtension.isEnabledForHostApp():252 Conv2Query not ...
1
vote
2answers
70 views

What is the best way/tool to share automated tests with non-technical stakeholders?

I've been tasked with finding a tool/solution to present our automated python test cases to other stakeholders in the business (I won't write actual python for time-saving purposes). Our tests are ...
0
votes
1answer
45 views

What is BrowserGetter in JUnit?

I am a beginner for test automation and following the Test Automation University 'IntelliJ for Test Automation Engineers' course. In chapter 6.3 to create fields and variables use this 'BrowserGetter' ...
0
votes
0answers
10 views

Action Bar for Debugging in Visual Studio Code runs for few seconds but then disappears

I have a Selenium with Java project in VSCode using Jenkins and Maven, however it's never been able to debug or step over or step into the code. Upon clicking the Debug Test from within the code the ...
0
votes
1answer
33 views

Unit vs Component vs System Testing [duplicate]

Can somebody explain the difference between unit, component, and system testing with a real example. What I understand is unit testing is about testing individual functions with mock services if the ...
0
votes
0answers
31 views

How can I use a for loop in this code in python

I want to run my code 10 times in 10 new tabs. Kindly help me on how can I use a for loop and open in 10 different tabs. code; import time from selenium import webdriver from selenium.webdriver....
2
votes
2answers
141 views

End to end application tests when separate repo for the front-end and back-end tests

We have separate repos for the backend and the front end. The backend which is just microservices has its unit tests(jest), microservice integration tests(jest), and microservice end-to-end tests(jest)...
0
votes
1answer
31 views

How can I handle browser alert

I do not understand how to click allow button. import time from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-notifications") ...
0
votes
0answers
15 views

Windows switching issue through Winium

I am automating an application where I have to click elements on next window after login . Below is the issue that I am observing, which is making my scripts failed. Login is a small splash screen , ...
0
votes
2answers
31 views

Seeing NullPointerException on running TestNG Selenium Framework

Written the Test Script in TestNG framework where the Open browser activity is happening in "baseClass" under @BeforeTest annotation and the Test Script is written in Test Packages under as @...
0
votes
3answers
122 views

How to pass text dynamically in xpath under Properties file

I am stuck in a situation where I want to write Xpath dynamically in the properties file. The actual XPath is like in property File div[contains(text(),'<state Name>')]. State Name changes ...
2
votes
2answers
462 views

Playwright: Creating and interacting with a list of elements on the page

This might be a simple question, however I would like to know if there is a simple way of declaring a list of elements which later on you will be working on for example looping through it and looking ...
0
votes
0answers
91 views

How to perform mouse hover in selenium java using page object model approach?

I have automated some test cases mentioned at https://www.techlistic.com/2019/08/automate-buy-product-using-selenium.html For second test case mentioned at given link, I have written code for mouse ...
0
votes
2answers
36 views

I want to scroll to a specific location Selenium Java

I have a list of webelements, I have written the below code: List <WebElement> feature_tiles = driver.findElements(By.xpath("//div[contains(@class,'featuretile')]//a")); System....
1
vote
1answer
380 views

Playwright: Printing Console Logs each time when one of the test fails

I am working with Playwright, Mocha and Chai for my automation project and I was wondering if there is a way for capturing all console logs that appear during a failed automation test execution. ...
-1
votes
1answer
17 views

Automating Ruby on rails testing [closed]

I'm the only software engineer in a 40 person organization, and we work with various contractors to write our RoR site. (I'm mostly a python programmer, so have limited experience in this space) We ...
1
vote
1answer
40 views

AllureRestAssured , how to ignore logging headers

I am using rest-assured and allureRestAssured for testing api given().header("Content-Type", "application/json") .header("key", key()).filter(new ...

1
2 3 4 5
69