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
7 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
2answers
167 views

Setting up an API Test Framework

I'm testing an API and I'm looking to define my payload using classes so that my program can then deserialize/serialize into any format (namely XML in my case). Below is an example of the payload: ...
0
votes
3answers
850 views

Getting error : NoSuchElementException - Unable to locate element with ID attribute

I am running this code: from selenium import webdriver from `selenium.webdriver.firefox.options` import Options Setup: options = Options() options.add_argument("--headless") def get_results(...
0
votes
1answer
16 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
29 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") ...
1
vote
2answers
908 views

Click getting to lower item (under dropdown) instead of dropdown in Selenium

I m trying to click on the dropdown menu item and i am able to select the dropdown and the menu item but instead of clicking on item the click is going to the element right under it. Before the ...
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 ...
1
vote
3answers
72 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
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
2answers
67 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
2answers
543 views

How to maximize browser window irrespective of windows versions

I have some scripts which are running on Firefox browser. Here the problem was I am using driver.manage().window().maximize(); code to maximize the browser. It is perfectly working fine with Windows 7 ...
0
votes
6answers
7k views

Suitable Automated Testing tools for POS Systems

This is not duplicate of following question since it was accepted by the asked person with a different answer Automating tests in EPOS systems We are developing a Big POS System with several Desktop,...
0
votes
1answer
24 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.
1
vote
2answers
7k views

How to make a variable in `protractor.conf.js` available in spec file?

I have a variable in protractor.conf.js which is exported within onPrepare() function as: global.myVariable = myVariable, and in spec file I'am trying to use/call it, but it seems that it can't be ...
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,...
0
votes
2answers
158 views

Selenium driver for web app testing on chrome in incognito windows

So I am trying to use a selenium web driver extension on chrome to record a web application test on a chrome browser that is in an incognito mode. How do you run a test on a web application in an ...
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 ...
0
votes
1answer
52 views

Calculate the total of liabilities and check it is matching with the given value

I want to calculate the total liabilities amount from webtable and need to compare with the total amount which is present on webpage. I got the following error : Illegal/unsupported escape sequence ...
1
vote
1answer
519 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
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
1answer
282 views

Not able to add Bug from Testlink to JIRA (Required Version Number)

I have Integrated JIRA from testlink using REST API. I was also able to link the failed testcase to a bug in JIRA. But while trying to create issue in testlink there is a validation happening for ...
1
vote
1answer
598 views

Exception generated after exporting code as runnable jar

D:\RhythmFileDownload>java -jar fileDownload.jar Starting ChromeDriver 2.28.455520 (cc17746adff54984afff480136733114c6b port 36946 Only local connections are allowed. Apr 03, 2017 6:14:23 PM ...
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 ...
-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
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. ...
11
votes
8answers
14k views

Failing the script in Jenkins due to difference in screen size

Currently I am working on running Selenium scripts in Jenkins. Here, my issue is my browser window size which is 1382x754 px resolution. But in Jenkins browser resolution was 1044x784. Due to this ...
6
votes
7answers
973 views

Where to get feedback on my testing skills?

I've been testing for a number of months during development of two products. However, my organization does not have well-established testing process. We are given templates, TT tool, and told to write ...
0
votes
1answer
2k views

How to launch Firefox Geckodriver with add-on enabled in selenium java?

I'm trying to use a custom profile in Firefox with an add-on, I can open the profile, launch URL, I even see the add-on icon on top bar but is always set into the disabled mode, I need to set it to ...
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 ...
15
votes
7answers
4k views

What are anti-patterns in test automation?

anti-pattern: There must be at least two key elements present to formally distinguish an actual anti-pattern from a simple bad habit, bad practice, or bad idea: A commonly used process, ...
9
votes
4answers
1k views

How to make sure your test data is correct?

We are doing integration tests where we simulate manually data coming from external systems to our application. Our integration tests have become the bottleneck in our process, because preparing test ...
1
vote
1answer
25 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? 🤔
1
vote
1answer
7k views

“org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally” issue on jenkins(openshift) chrome node

I've been trying to run selenium codes over Jenkins (server/openshift). There is chrome node in the jenkins machine for Test Automation - Selenium. I'm getting this error: org.openqa.selenium....
1
vote
2answers
9k views

visiting a dynamic link that opened in new tab in cypress

Scenario: While clicking a link/button in the application, a new tab is opened (with a dynamic url) Is there a way in cypress to test somethings in the newly opened tab? I cannot use cy.visit() as ...
0
votes
2answers
11k views

Clicking a cell in a dynamic data table C# WebDriver

The HTML I'm trying working with is below, <div id="enquiry-header-grid-SalesTransactionEnquiry-enquiry-header-grid-wrapper" class="enquiry-kendo-grid-wrapper k-grid k-widget" data-role="grid" ...
2
votes
1answer
2k views

How to save Appium logs to a local text file?

I am using Appium to automate all my test cases related to IOS device using Java, Logs are currently displayed on Appium app itself. I want to save them in a text file so that i can check error after ...
0
votes
2answers
84 views

How to get content of an clickable element in Selenium?

Facing issue to read content after clicking an element in Selenium. I have tried with below code: if(webElement2.isDisplayed()) { webElement.explicitWaitToClickElement(4,webElement); ...
0
votes
3answers
2k views

Selenium IDE type not saving text

I am trying to create an automation tool to test a salesforce platform. When I try to create a new form, the text is displayed but it's really just an injection from Javascript. Is there any way to ...
1
vote
4answers
13k views

How to resolve NoSuchElementException in Selenium with java?

CODE: driver.findElement(By.name("USER")).sendKeys("XYZ"); driver.findElement(By.name("PASSWORD")).sendKeys("abc"); I have tried various ways not just name but by xpath, css selectors but every time ...
1
vote
1answer
1k views

How to select a dropdown value in Selenium WebDriver using Java appium?

I am new to Selenium, currently am working on selenium webdriver. I want to select a value from the drop-down. But I am not able to do it because of some error. Also, I want to inform you that in my ...
3
votes
2answers
1k views

Test Automation for different user roles within an application - Selenium and C#

I was a developer a long time ago and have been tasked with our teams automated testing with Selenium and C# for our web application; Our application has many roles a user can be; such as an admin, ...
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...
-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 ...
-1
votes
2answers
55 views

Selenium with C#

I am new to C# with selenium and visual studio,I have some experience only in Selenium with java in eclipse. Here my doubt is that in eclipse we used to configure the packages for every new projects ...
0
votes
1answer
385 views

Clicking flipping image in selenium webdriver using C#

New to this platform I'm a beginner learning selenium webdriver with c# but I have a problem clicking on a flipping image, I identify the id but it won't click on it. I was told to use wait which ...
2
votes
1answer
198 views

Appium-based framework for testing desktop app (not web)

Anyone had experience in automating desktop applications (not web)? I need an Appium-like solution to integrate it with my mobile automation (written on Appium, Java). Our company has a messenger ...
0
votes
2answers
346 views

Count all elements with the specific resource ID on the scrollable view

Here is the question. How can I count all the elements with the resource ID body_bubble on a scrollable view ? When I use the driver.findElements (By.id ("body_bubble")).size() method, it gets only ...

1
2 3 4 5
69