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
85 views

Selenium's execution time increases if a web element is absent on a web page

I have a table on my web page I am trying to automation that contains x number of rows (tr)s and under each (tr), there are a varying number of (td)s. In my flow, I have to check for the existence of ...
0
votes
1answer
45 views

How can I measure how effective my testing is? What metrics should I use?

I am working as SQA and mostly do smoke testing and regression testing manually. But I think it is consuming more time and I am not certain about if it's completely tested or not.
5
votes
3answers
8k views

How to check a button is disabled using Cypress

<button _ngcontent-c21="" color="primary" mat-button="" class="mat-button mat-primary" ng-reflect-disabled="true" ng-reflect-color="primary" disabled=""><span class="mat-button-wrapper"> ...
-2
votes
0answers
24 views

Assert Fails Though Text Values available in that XPath

I'm working in selenium with c# Assert is not working though xpath is given correctly. xpath shows only one item. It was working correctly quite sometime back. Here is my piece of code. Assert....
1
vote
1answer
72 views

Getting Error at the time of saving the test cases in Katalon Studio

Getting below error while saving test cases after recording. Can someone help me to understand and how to correct this?
4
votes
5answers
244 views

How to deal with not motivated testers?

We have several "testers" who are involved in manual testing and test automation, but all of that part-time. Some of them are not really interested in testing and test automation as a field and lose ...
1
vote
3answers
52 views

What is the use of Maven in Selenium WebDriver Automation Project?

Do we use Maven only to create dependencies in pom.xml file? Isn't there any other use of Maven in selenium project?
2
votes
1answer
25 views

Integrating Protractor to Octopus deployment (CI/CD Integration)

I have a batch file with below content: %1 %2 --params.validFile=%3 --params.invalidFile=%4 I am starting it through power shell script: $path= "<filePath>\start.bat" $args= '"<filePath&...
0
votes
1answer
44 views

Selenium: Capture DOM Elements Image

I have an API to capture the image of a particular element in DOM and return them. For that, I have a list of WebElements which needs to be captured into a single webpage. For that same, I have found ...
3
votes
4answers
120 views

How to combine exploratory testing with test automation creatively?

Background :There is an definite value in automated test execution of scripted tests to find regression defects. On the other hand there is an tremendous value in exploratory testing and going beyond ...
4
votes
3answers
11k views

Order of execution for Tests in TestNg, If Priority set only for few Test Methods

I have three methods as mentioned below, two with priority ( 0 , 1 ) and third method(Test) with no priority attribute. What is the order of execution. Code snippet given below.. @Test(priority = 1) ...
0
votes
1answer
887 views

How to setup Jmeter as server and send messages to Client over TCP

Am trying to setup Jmeter as server and send messages from Jmeter to a client TCP connection. But unfortunately, Options in TCP Sampler of Jmeter make it a client.
1
vote
1answer
51 views

Waiting for asynchronous process in system-tests

Note: I am aware that this topic is broad and maybe subjective, however, I do not know any better place to ask. If you close it, please tell me where I could ask instead. Assuming we are running a ...
0
votes
1answer
1k views

What is the difference between generic and specific scaffolding?

I searched the difference on google. But could'nt find any intuitive explanation for both the terms. Can someone give me the main differences between the two in software testing.
0
votes
1answer
71 views

How to run my selenium runnable jar in a different machine without driver files

I am trying to export my project as a runnable jar and run it without driver.exe files being present. I tried incorporating them with below code to make it independent but still unable to run the jar ...
-1
votes
3answers
103 views

Selenium automation interview preperation question [closed]

What error does this line return when I pass a URL without HTTPS or HTTP driver.get("www.google.com"); It was asked to a fresher in his interview.
2
votes
2answers
43 views

Setup of Test automation framework from scratch using NUnit and Specflow and RestSharp and selenium with Visual Studio 2017 C#

We have so many API's(5 to 8 API calls - Mostly REST based and 1 or 2 in SOAP based) and Oracle DB. We do not have any WEB UI. No UI automation.Only middle tier and backend automation. For automation ...
1
vote
1answer
183 views

Compare 2 JDBC response in Jmeter

I want to compare 2 JDBC responses: I have Source reponse from 1 JDBC request as below in table format: (Source DB)JDBC Response response1: (Target DB)JDBC Reponse 2: I am saving the response as ...
1
vote
2answers
50 views

How can I handle the chrome Http Authentication popup window in selenium without AutoIT?

I have tried https://{USERNAME}:{PASSWORD}@xyz.com pattern to authenticate URL but it doesn't work for me. Can someone suggest me the best way to handle chrome HTTP authentication popup?
3
votes
2answers
165 views

RPA tool for automation

Is it a good idea to use TagUI (RPA tool) for website automation? if so what are the merits of using this tool over selenium?
0
votes
2answers
31 views

How to rerun failed test from where they instead of from beginning? (TestNG)

Is there any way to re run the failed testcase from the page where it got failed instead of running the testcase from beginning in Selenium Java ?
1
vote
1answer
100 views

How to run selenium script recorded using Selenium IDE along with jMeter?

Here are the steps I have followed so far.... 1) Recorded steps using Selenium IDE 2) Then I export it (".side" file) into a java(junit 4) file. 3) Created a maven project and added the ...
1
vote
3answers
72 views

Automation running on a locked machine

I am fairly new to the automation scene and am looking for some advice. I've done Selenium development for about 2 years however, I just got a new job. Coming from a Selenium background, when running ...
0
votes
2answers
53 views

How can I verify that saved data is displayed corrrectly using Selenium + C#?

<p class="details-info-block__text"><span class="details-info-block__label">Business Address 1:</span> 1010 Priority Way West Dr</p> I want to verify the address value (e.g. "...
5
votes
1answer
67 views

PoM Design/Architecture questions

Apologies if this is an improper question, as it's actually a multi-part question (But it seems like unnecessary clogging of the site to make multiple posts). Im writing my first PoM framework, it's ...
62
votes
14answers
282k views

How to download a file using Selenium's WebDriver?

Basically I want to at least check that a download-able file exists / download link works and preferably get stuff like the file size too. Here's an example: link = self.browser....
0
votes
2answers
198 views

How to perform click on an element using selenium for which I am getting staleState Exception

Problem: There are couple of radio buttons with the same ID and I need to perform click on these. The first radio button gets the click where the second one is getting StaleElementReferenceException. ...
3
votes
2answers
147 views

Locate Elements through Shadow DOM in Chrome Selenium?

I currently have an automation tool built using Python. Currently, the tool serves the custom application my company has built on Salesforce. Salesforce released a Winter 2020 version, and implemented ...
3
votes
4answers
74 views

Creation of a test charter within the explorative test? How should it be structured?

According to istqb foundation level, a test charter is the following: "An instruction of test objectives and possible test ideas on how to test. Test charters are often used in explorative testing. ...
1
vote
1answer
14 views

In gradle 4.6, how to force all tests in a class gets executed first before moving to tests in next class?

I am using Gradle 4.6 with testng. My test suite has tests organized something like these. java class1 { test 1.1 test 1.2 test 1.3 test 1.4 } java class2 java class3 java class4 java class5 All ...
0
votes
1answer
42 views

New error message 'A Java exception has occured' but code has not changed

When I try to execute selenium code in Eclipse, I get the error message 'A Java exception has occurred'. Last week the same code ran without issues. I have done with configuration part, when we try ...
-1
votes
1answer
31 views

How to test the difference between fastjson and gson in serialization and deserialization [closed]

The project uses Gson to replace Fastjson. These two packages have some differences in serialization and deserialization. As a software test engineer, how do I perform regression testing?
2
votes
3answers
85 views

Behavioural Gherkin Steps requiring complex Step Definitions when Automating

I'm currently part of a team that is trying to reinforce BDD in our tests and automation. Our tests up to this point were procedural and we want to move towards behavioural steps. An example of our ...
0
votes
2answers
74 views

Selenium Webdriver sendKeys method sending value twice

I have 6 selenium tests (TestNG) running on chrome and firefox (both up to date versions) which connect to Browser stack to run. the problem is that 1 of the test fails intermittently on Chrome as ...
0
votes
1answer
16 views

Waiting for Masonry grid layout to be ready, before clicking button

Our app uses Masonry grid layout. After page_A opens, the tiles keep moving for a second or two. The test case is: open the page_A and click on the button which opens page_B. While clicking the ...
-2
votes
0answers
19 views

How do I set up test stages for a Magento Cloud environment?

My current project is about planning a test project environment in the Magento Cloud environment. Of course, the Magento Cloud offers the possibility to create other stages from the master. Is the ...
0
votes
2answers
59 views

How to find an new element recently added on webpage dynamically after drag and drop in selenium?

Currently I am working on a webpage which has rappid js components. I am trying to achieve dragging and dropping of elements from the palette as seen in the screenshot to the grid. The element I drag ...
0
votes
1answer
38 views

How to get content of clickable element. Facing issue to read content after clicking an element

I have tried below code: if(webElement2.isDisplayed()) { webElement.explicitWaitToClickElement(4,webElement); webElement2.click(); } String tagContent = (String) ((...
0
votes
1answer
47 views

Unable to execute single tc, login then run other application features, right now its running as a suite

I have to execute my test cases as a single as well as a suite, right now its running as a suite but not as a single test case in selenium webdriver: Below is my test which are calling methods present ...
1
vote
1answer
36 views

IE 11 auto accepts the alert pop up

So I am on an edit page and when I click the cancel button to stay on the edit page the IE driver automatically accepts the leave page in alert pop up. I even added the IE capabilities saying: ...
1
vote
2answers
143 views

Schema Validation in Postman

I'm having trouble validating a schema in Postman using tv4 inside the tests tab - it is always returning a true test, no matter what I feed it. I am at a complete loss and could really use a hand - ...
0
votes
2answers
159 views

Find when iframe is closed in selenium

I am writing tests on a third party system, that utilizes iframes. I have been going through my code and eliminating places where I have been using waits/sleep for 2-5 seconds, and looking more for ...
0
votes
1answer
46 views

How to get total number of tests ran based off of CSV data file?

I inherited two dozen or so java tests and when the suite is ran, everything is printed whether passing or failing. I would like to only print failures/failure logs and get a total count of tests that ...
1
vote
2answers
64 views

Handling the case when users get different main pages based on usertype after login

It's more like a theoretical question and I am seeking the best practice here. Given an application where you have different user types, newly registered users get a new UI while old users are ...
1
vote
1answer
38 views

Not able to verify the downloaded file with Chrome WebDriver running headless

We are trying to verify the downloaded file in headless mode with C#, the file is downloading but not saving in the download path, so my test script is failing. Any idea for this? The code is below ...
1
vote
1answer
61 views

Invalid Session id (Connect Failure) randomly when running automated tests

I've been new to automated test creation and have been dipping my hands on it recently. Every test seems to be running successfully individually except whenever I run them all together sequentially, ...
2
votes
0answers
61 views

Can I use TFS as source control for rational functional tester scripts with Eclipse IDE

Is it possible to use TFS source control to manage and store test scripts created with Rational Funtional Tester from Eclipse IDE?
0
votes
2answers
63 views

How to Automate the fields that are text and drop downs. You are not sure that how may fields will be and of which type (text/drop down.)

here situation is like that admin set the Specified fields for front end user and its upon admin that how many fields he set for user. One thing is that he can only create 2 types of fields either ...
0
votes
1answer
38 views

Does the test and test tooling differ from Magento to other test tools or solutions?

I am on my way to one of my next Magento projects. Currently there is no test environment, no test days, no concepts or test plans. Even a team has to be set up first. I have already worked a lot in ...
0
votes
1answer
41 views

TestNG with Eclipse : How to add main class?

How can i add main class in eclipse cucumber project. i am running cucumber feature file and using TestNG but getting error: "cannot find class in classpath" and as a resolution of this i am geeting ...