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
0
votes
1answer
36 views

How can I count how many times this selenium script has been run in Python?

for example, I run this script 200 times and now I want to run more time. then I count every time and show me in console import time from selenium import webdriver start_time = time.time() driver = ...
1
vote
1answer
39 views

Is there a way to make Selenium use cookies to autologin?

I don't want to have to make the script log in every time. Is there to stop the web driver opening a "fresh" browser and instead make it open my standard version/load cookies so it auto-logs ...
0
votes
1answer
56 views

Do we have a terminology for manual test suite that replaces failed automated tests?

Background: 3-week sprint, 2-days testing against staging and 1-day testing against qa. qa environment is only up for the duration of 1 day as it costs a bit money to have it running on AWS. We have ...
1
vote
1answer
30 views

JavascriptExecutor.executeScript(“arguments[”+index+“].click();”, elementName) does not work

I'm using IntelliJ IDEA 2020.1 Community Edition for automated testing. The issue seems simple enough. I have a Search drop-down menu which also contains a Search menu option (among other options). ...
0
votes
1answer
703 views

How to install chrome-webdriver on GitLab CI/CD

I am trying to do some tests using GitLab CI/CD and Robot Framework, I have this simple .robot file: *** Settings *** # Declare Libraries Library SeleniumLibrary # Declare Suite Setup and Teardown ...
2
votes
0answers
63 views

Large scale selenium automation project fails when multiple suites are running all together

I am working in a large scale project automation with Selenium where multiple test suites are available. When a single suite is running, it works fine. But when all suites are running all together it ...
-1
votes
2answers
62 views

How can one test the security measures or vulnerability when it comes to API testing? [closed]

I use REST for API Testing. What are good tools and/or approaches to testing security issues ? Any information through which I can broaden my perspective,ways,tools for testing when it comes to API.
0
votes
3answers
120 views

How to log testing results to xlsx (Excel) file with Selenium WebDriver?

I have a certain test automation script written in Java with Selenium WebDriver. Currently, I log the testing results to the console and manually copy them to the required document. Is there a way I ...
1
vote
3answers
215 views

Is it possible to open a mobile browser with Selenium WebDriver?

I know it is possible to open a desktop web browser with Selenium WeDriver. The following lines written in Java allows doing so: WebDriver webDriverChrome = new ChromeDriver(); webDriverChrome.get(...
0
votes
1answer
90 views

How to go through all pages at a certain domain with Selenium WebDriver?

I need to verify a certain thing on multiple pages on a certain site. The thing is it is quite tedious to manually add links to each page for testing to a script. Is there a way the Selenium WebDriver ...
0
votes
0answers
9 views

How can I check the error in the incoming alert message in Android mobile test?

I'm running an Android mobile test with C#. The transaction I want to do is a linked transaction and I want to have it checked. After I press the Continue button, I get an alert message. I want to ...
-1
votes
3answers
388 views

AttributeError: 'TestOne' object has no attribute 'driver'

When I run my script it gives me this error, CONSOLE ERROR : "C:\Users\LENOVO L540\PycharmProjects\easyNeasypytest\venv\Scripts\python.exe" "C:\Program Files\JetBrains\PyCharm Community ...
1
vote
1answer
92 views

How to automatically execute failed testing cases on Jenkins using extent report

I'm looking for a solution to execute failed test cases automatically on Jenkins. I'm currently running test cases through pom.xml which points to testng.xml I'm using extent reports to capture and ...
0
votes
3answers
72 views

Which test automation factor is effective? [closed]

Details: We had a discussion on this very topic in our team today, some brought in a factor of 30% which I also know, but I am of the opinion that a much higher automation factor should always be ...
-2
votes
1answer
49 views

Cannot invoke “pageObject.loginPage.enter_username(String)” because “this.LoginPage” is null

I'm automating a simple login test project with cucumber + maven + testng. I can't write username and password in login page I can't login https://www.lambdatest.com/automation-demos/ website. Where ...
0
votes
0answers
7 views

Testing a mock UNIX project with MC-DC coverage

I’m currently on a UNIX mock shell project involving writing and testing implemented commands such as ls and grep. This is part of a testing module in my university, and is written in Java.. I’m ...
1
vote
2answers
35 views

How to verify the presence of a script on multiple web pages?

I have a set of web pages where I need to verify that a certain script is present. A have a lot of pages to verify so I would like to automate this part of testing. How can a create a sequence with ...
0
votes
2answers
306 views

Unable to import “ExtentHtmlReporter” for the java class

I'm trying generate reports for the selenium test script. but unable import "ExtentHtmlReporter" packages to the class. added dependencies as below <dependency> <...
0
votes
1answer
116 views

i want to run my selenium python script with appachi jmeter .how we integrate selenium python script in apache jmeter

import time from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support.select import Select driver = webdriver.Chrome(...
2
votes
2answers
49 views

How to automate look-and-feel testing in a complex web application?

My company's web application has dozens of distinct pages that a user might hit. There are site-wide stylesheets, so changing one of them could affect every single page. There are four or five ...
1
vote
2answers
465 views

How to handle mouseover on element in UI in selenium webdriver using javascript

I don't want to use action class as its failing for some browser. therefore I am using JS but I ended up with " arguments[0].hover is not a function" error for using arguments[0].hover(); ...
-1
votes
1answer
47 views

Still Getting Element is not currently visible and so may not be interacted with Can some one pls give your inputs

I am getting the above error : Below is the xpath : String MeetingTypedropdown = "//*[@id='meetingDatesForm:meetingDatesTable_data']/tr["+(i+1)+"]/td[3]//div[3]/span"; PageUtil....
4
votes
3answers
82 views

Regression/Automation testing for experimental(ABtest) features

We are using automation testing tool Cypress to perform regression testing. We make 2 releases in a week so automated regression testing is critical for us. There are some features on production which ...
1
vote
1answer
32 views

How to retrieve test method status and other values in IReporter implementation

I need to retrieve test method status, actual result, expected result & other attributes in IReporter implementation. Is it possible to use ITestResult to pass required data to generateReport() ...
0
votes
1answer
30 views

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button.Can some one pls guide.NeedHelp

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button. Scenario: I have a screen where I need to find the row which has the value as &...
1
vote
3answers
76 views

Implementation of automated workflow testing

I have doubts on how to implement test automation in the company where I am currently. I was wondering what workflow would you suggest? The project I will be working on uses, in its backend, the Java ...
0
votes
0answers
56 views

Retrieving cookies from a file in selenium webdriver

This is the code which I am using for the retrieve the cookies while logging to the system. In this code shows error as "The constructor Boolean(String) is deprecated since version 9" and ...
0
votes
0answers
12 views

Looking for a solution for automated tests for a 3rd party web application (where my product integrates in the background)

My product integrates with 3rd party websites. It does this on the backend level, not affecting the original UI in any way. I'm looking for a solution to test that simple user actions are unaffected; ...
-1
votes
1answer
264 views

What are the advantages and disadvantages of using TestProject in automating functional testing?

I'm currently checking out the testproject for the possibility of using it as a tool in our automation testing (functional). Please help me decide if it fits our project by giving me the advantages ...
0
votes
1answer
123 views

Tools for microservice E2E automation testing

What are currently the best or most popular tools/solutions for automated end-to-end testing of microservices (preferably with an entry-level as low as possible)? The CI/CD process is GitLab-based ...
0
votes
1answer
62 views

Getting java.lang.NumberFormatException: For input string: “517838839328”

PageUtil.clickOnButton(driver, AppXPathsConstants.UserAdminAddNewuser); String id ="1517838839328"; String newid = "1517838839328" + (Integer.parseInt(id.substring(1,id.length()))+...
0
votes
1answer
259 views

ElementClickInterceptedException:

CONSOLE ERROR : Message: element click intercepted: Element <div class="button" data-target="false" data-id="2">..</div> is not clickable at point (937, 293)....
1
vote
2answers
51 views

How to select value from this dropdown list in Selenium using C# e.g. Main Feature as shown in the attached picture

Website if you want to try by your self: https://phptravels.com/ to run the script <div class="lvl-0 dropdown"> <span>Features</span> <div class="dropdown-...
1
vote
3answers
131 views

Breaking a loop after resolving a promise

I am writing a program to check the health endpoint of one of our APIs. So, before starting execution, I try to hit the health endpoint 5 times. If I get the desired response code during the 5 ...
1
vote
1answer
68 views

Python with selenium: unable to locate element which really exists

I've been trying to fill input: <input id="PASSFIELD1" class="logField" type="password" onkeyup="next(this, event);" maxlength="1" autocomplete=&...
0
votes
0answers
23 views

How can I identify each text box without any label using Sikuli GUI automation?

Anyone please help me to solve this, i using the latest Sikuli. I have read the documentation but yet I still stuck with this. I want to automate this screen (Oracle Form), I capture the image but ...
0
votes
2answers
50 views

How to avoid errors occur as 'Unable to locate the element'?

Here I wanted to run this method properly when boolean values are false, but when running this method it always failed the test case saying "no such element: Unable to locate element".How ...
0
votes
2answers
50 views

Advices/Best practices/Validity on selenuim page object model

I have divided the system modules into several packages in eclipse. In there one java class is for one particular page and the other consists of the test cases. Apart from this, I have used the ...
-1
votes
1answer
47 views

How can we use WebElement.FindElement() or findElements() method on a single WebElement object, even if its a method of WebDriver interface? [closed]

I am a newbie in Selenium and Java. Now, is this code correct. How can I call findElement() or findElements() method on a single WebElement? I want to store text of td[1] node. Why are we doing ...
0
votes
1answer
127 views

How to find all child elements inside a WebElement or List of WebElements in Selenium?

I have a <section> tag in which there is <tfoot> tags and many <td> tags. I want to store the 1st & 4th td elements of a in a Map, but i get index out of bounds exception. Now, ...
1
vote
1answer
76 views

How to test a Java desktop application on Linux

I am a full-stack developer and recently I received a task to test a third party system that arrived here at the company. I already had experience in automating tests on the web with Cypress, Selenium,...
4
votes
1answer
161 views

Shall I put my e2e tests and performance test frameworks on the same repository?

I am using Cypress for my e2e tests and k6 for my performance tests. They are both in Javascript and access the same config json files (I use this for my environment variables). The folder structure ...
0
votes
0answers
14 views

Avoid Lite mode Chrome screen in Appium Studio

I am trying to automate web site testing with Appium Studio. But when I start Chrome from it every time there is a Lite mode screen. But I can not close it with my test script because the Chrome app ...
0
votes
2answers
62 views

convert to selnium java for loop code in python selenium [closed]

System.out.println("****************Scrolled down starts****************"); Thread.sleep(2000); for (int i = 0; i < 12; i++) { JavascriptExecutor ja = (JavascriptExecutor) driver; ja....
1
vote
2answers
31 views

how to send the DB fetched values to frontend using selenium?

I wrote a program where values are coming from sql database.Now i want to send those values to frontend using selenium. say it is an pincode i fetched from Database but now if locate the element where ...
0
votes
1answer
33 views

Appium How to iterate over a listview of unknown length?

IList<AppiumWebElement> els = AppiumDriver.FindElementsByClassName("android.widget.LinearLayout"); var loc1 = els[12].Location; var target = els[1]; var loc2 = target.Location; var ...
7
votes
2answers
348 views

What would be the most maintainable way of defining your tests to separate them between environments (dev, test staging) using pytest?

Currently you have a large test-suite in the scale of hundreds of test cases which is getting bigger every day The requirement from the rest of the team members is simple: Let us execute tests on Dev, ...
0
votes
2answers
174 views

How to deal with overlay animation using selenium webdriver?

The web application I'm trying to automate test cases for uses an overlay animation every time page is refreshed or as the user navigates from one page to another. I have tried applying fluent wait ...
1
vote
2answers
207 views

How to download files in folder other then the download folder using Protractor?

Using the following configuration, files are always saved in the download folder instead of the folder set for default_directory. 'capabilities': { 'browserName': 'chrome', 'chromeOptions': { ...
2
votes
2answers
169 views

Code coverage for Integration tests

Let's say that I have a project where most of the codebase is already covered with Unit Tests (using mocks). How many Integration Tests should I write then? The entire codebase is already covered with ...

1
2
3 4 5
68