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.
3,670
questions
0
votes
1
answer
1k
views
How to fetch data from UI and passing those data as input for selenium script?
Scenario: I have to read input from UI and based on the input i have to run my selenium script.
Earlier i prepared a jar file for the same and was inserting values for the script from excel and ...
0
votes
1
answer
4k
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.
3
votes
2
answers
4k
views
Selenium UI Tests folder structure
I'm really new here and started writing some UI tests using selenium and testng and wanted to know how do you structure the folders, it is a maven project and using java. I'm putting all the test ...
1
vote
0
answers
48
views
Testing of console tools
From my previous experience, I am used to write tests for either unit testing or integration/deployment testing.
Now I am facing the challenge to write automated tests for a console tool using a ...
2
votes
1
answer
82
views
How to test Oracle DB?
I have to test using SQL in Oracle if the data stored in the DB is completely correct or not. For example, make sure we are up to date, no future dates, no invalid characters on varchar columns, etc.
...
2
votes
2
answers
679
views
How to assert checkbox is marked using JavaScript
I’ve problem to assert that checkbox is checked. I’m using automation web testing framework which recording my clicks and generate JavaScript code. The problem is even if the checkbox is unmarked, ...
1
vote
1
answer
360
views
Separate Manual Testing and Automated Testing Team?
I work with a team of QA Engineers who do manual testing and automated testing in the form of Selenium and Postman.
We're pretty good with our manual tests, attempting to automate said tests are ...
2
votes
2
answers
268
views
Selenium: How do I use the button of my HTML in WebElement?
How do I locate my button that has the text Pesquisar > in my Selenium WebElement?
My HTML:
<div style="font-size: 10pt; font-weight: bold">Portais
</div>
<hr>
<form name="...
3
votes
1
answer
8k
views
How to select list items using button in selenium webdriver?
Here is code that I am using firstly I am clicking on the button then the list of items is shown and I try to select from the list but it said that Index=0, Size=0 when I use Xpath. When I use the ...
3
votes
1
answer
801
views
What is the difference between Partial Oracle and Self checks as oracle?
I was going through a book on software testing where I found these two terms. However both the definition said the same thing quoting which
Oracles that check results without reference to predicted ...
1
vote
3
answers
1k
views
Looking for a HTML reporter to use with Detox and Jest
I desperately looking for a HTML reporter to use with detox with Jest - I need it for both smoke and regression testing. I am testing a react-native app on iOS
I've tried https://www.npmjs.com/...
2
votes
2
answers
77
views
Getting Nullpointer Exception
While i run this below code i am getting Null pointer exception.
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import ...
0
votes
1
answer
275
views
Json Path extractor using Jmeter
Using Json extractor from the below response I would like to extract the only customerProductIdentifier where highLevelProduct is HSI, and in my next Json extractor similarly would like to extract the ...
0
votes
2
answers
777
views
How to upload file if the browse button is placed in iframe.?
I am trying to upload a file using "sendKeys" on iframe but its always opening Browse window instead of uploading file.
following is my code
driver.switchTo().frame(3);
WebElement UploadElement=...
0
votes
1
answer
1k
views
Want to test ebay site login without using Xpath
I want to test the Ebay site login, without using Xpath. It is not working, right now. I tried for hours to make this work. Please tell me what I am doing wrong and how to fix it.
This is what I am ...
0
votes
1
answer
1k
views
What are the alternatives to FirePath and Firebug with the Firefox
I am a beginner to automated testing. I cannot find Firebug and Firepath on Firefox add ons. so What are the alternatives to FirePath and Firebug with the Firefox?
Thanks
3
votes
2
answers
4k
views
How to drag an element and drop it in another frame?
Hope you doing well,
I'm trying to dragAndDrop an element from FrameOne to FrameTwo but not able to do so.Please help me to understand the concept and what I'm doing wrong here and need to achieve ...
2
votes
3
answers
137
views
Which approach should be applied when automating stories? What are the approaches or methodologies for it?
Here is what approach means to me while automating any story
Normal approach should we automate only functional flow not caring about the UI things like font of text, font type of text, color of ...
3
votes
2
answers
40
views
How to fake executable is missing?
related: https://github.com/fish-shell/fish-shell/issues/5444
I'm in the process of testing pure theme for fish.
I want to test the following conditional branch from our __pure_prompt_first_line....
0
votes
2
answers
293
views
While following Page Object Model, how handle Fragments in Android
I was searching over INTERNET, i didn't find solution for this coding puzzle, let say we have listView and each option will return different screens object. Now I need to create a method that on click ...
2
votes
1
answer
49
views
How have you automated the generation of software test documentation for ISO62304 testing?
I am working in a Medical Device/FDA/ISO62304 Software documentation world.
I would like to know from those who document unit and integration tests, how do you document testing. Part of the reality ...
1
vote
2
answers
50
views
Mocking external endpoints in tests on open source project
I am working on an npm package scraper library. I would like to add integration tests but I am not sure the best way to approach it.
I have an examples folder which shows how the scraper works with ...
0
votes
1
answer
1k
views
List of open source tools to automate Oracle form (desktop based) application? [closed]
Can anybody guide me, how I can automate oracle form (desktop based) application? Prefer the name of open source tools.
Thanks in advance.
1
vote
1
answer
4k
views
How to pass data from XML file in Selenium?
How to pass data from XML file into application and I'm using page object model with page factory.
Code:
public class LoginPage extends BaseClass {
@FindBy(id="EmailAddress")
WebElement ...
3
votes
2
answers
192
views
How an automation engineer could maintain a large messy existing test code base?
Background: For an UI automation large codebase having thousands of Selenium tests, which multiple people have developed/updated/patched over a period of few years. There is no documentation/manual ...
0
votes
2
answers
53
views
Performance Web Sites testing scenario
I would test the performance of my web application, by build test scenario like this :
simulate a scenario like: X Users request the same web page in the same time and view the response time of the ...
2
votes
1
answer
786
views
how to enable assertions through the Gradle Kotlin DSL?
The simplest possible assert usage I could think of:
thufir@dur:~/NetBeansProjects/helloAssertions/src/main/java$
thufir@dur:~/NetBeansProjects/helloAssertions/src/main/java$ ls
App.java
thufir@dur:~...
2
votes
1
answer
435
views
Object Oriented Programming with Selenium Page Objects
I'm struggling with how to apply inheritance and composition with Java for scraping sample data.
App driver:
package dur.bounceme.net.SeleniumBase;
import java.io.IOException;
import java.util....
1
vote
5
answers
5k
views
I am not able to click on Google Search Button
This is the HTML source of the button:
<input value="Google Search" aria-label="Google Search" name="btnK" type="submit">
This is my code:
import org.openqa.selenium.By;
import org.openqa....
1
vote
2
answers
44
views
Should I obtain data required for particular test case using appropriate endpoint or read it directly from the DB?
I am implementing automated tests of the system that consists of many microservices.
To verify appropriate behaviour of the endpoints using POST and PUT methods, I need to obtain some data (for ...
2
votes
1
answer
361
views
Unresolved reference: enableAssertions
working assertions example using standard Java SE with no imports:
thufir@dur:~/jshell$
thufir@dur:~/jshell$ javac App.java
thufir@dur:~/jshell$
thufir@dur:~/jshell$ java -ea App
Exception in ...
3
votes
1
answer
1k
views
UI automation to automate logging in to remote machine
I am trying to automate typing Win + R, and entering mstsc. This should open a Remote Desktop Protocol (RDP) window. In the RDP window, I have to enter a host name. All these should be done using UI ...
1
vote
4
answers
3k
views
Python Selenium unable to login by clicking on Button inside a form
website:https://www.etoro.com/login
<button automation-id="login-sts-btn-sign-in" ng-click="loginCtrl.login(loginForm)" class="e-btn-big wide dark pointer">Sign in</button>
I am trying ...
1
vote
1
answer
1k
views
Error showing "Include a platformName" capability
I recently started to learn Appium with Javascript.
When executing my script, I am getting an error stating "Include a platformName". I don't understand why, even though I have included it (...
1
vote
1
answer
195
views
GITHUB Branching & Merging Challenges [closed]
We have a team of 6 automation QA resources.
We are using GitHub to update our automation scripts and merge to master. This project contains test cases for smoke and regression test scenarios. It ...
0
votes
1
answer
43
views
after click on submit button record will added to the table, so how to verify that record is added or not in the table
There is add employee form, so how to verify the record, should I match the all fields of form which display on table or just match the name, also table is dynamic with pagination.
1
vote
2
answers
3k
views
'to.include' is not working where 'to.eventually.equal' is working
I was trying to check whether a string is present in another string. I am using the below code:
expect(actualTimeZone).to.include(employee.timeZone);
But it is giving the below error:
...
1
vote
4
answers
501
views
facing issue in google Xpath creation using Parent child relationship
My self created Xpath is below
driver.get("https://www.google.co.in");
driver.findElement(By.xpath("//div[@class= 'RNNXgb']/div/div[2]/div/input")).sendKeys("Kedarnath review");
after executing the ...
1
vote
1
answer
96
views
When to automate an api test?
I am testing a GET "xyz" API which is one of the many apis needed by a web UI. We need to setup some data before we test xyz. It can be done by using other apis like "abc" or by web UI. Both ...
5
votes
6
answers
2k
views
How can 100% test coverage be "not enough to prove working code"?
It is known that 100% test/code coverage does not mean your code "works" as expected.
What is generally meant by this statement and what use cases could demonstrate that 100% coverage is not enough?
1
vote
2
answers
878
views
Recommended project structure for Pywinauto project
I'm used to Selenium and the page object pattern. I'm now moving to an automation project for a Windows app, so I'm discovering Pywinauto.
I've be looking for good practices and was expecting ...
0
votes
1
answer
1k
views
how to run same testcase in 2 different URL in selenium JAVA [closed]
How do I run the same test case in 2 different URL which has same functionality
2
votes
1
answer
408
views
Select elements within <div> and <iframe>
We started test automation on our web app (ASP.NET). We should've done it ages ago and the meantime the app has become complex so our Selenium progress is very slow.
I'm completely new to Selenium and ...
2
votes
1
answer
238
views
getText() which is in between <div> </div> tag?
Get text which are in between tags
DOM
<div id="div_ResultMessage" class="AlertmsgDiv">
<div id="lblSuccessMessage" class="alert alert-success alert-dismissable">
<div ...
1
vote
0
answers
62
views
Code Coverage using Scala Automation Testing for JS web application
I'm looking if there's an existing application or tool that will run code coverage based on a scala implemented automation suite running against a Javascript web application.
Our automation framework ...
0
votes
1
answer
902
views
What is the best way to organize e2e and integration tests in one project?
What project structure is good to store e2e and integrations tests?
It's need to add hierarchy between e2e and integration tests.
Where and how it's better to store integration tests?
Currently I have ...
2
votes
3
answers
969
views
Automation tool for Angularjs and HTML5 desktop application in Electron
we have a desktop application that is developed using Angular js and HTML5 over atom framework (Electron). I have used UFT 12.53 and Test complete 12.31 and unable to identify object properties. These ...
0
votes
1
answer
416
views
Sleeper in Selenium WebDriverWait constructor - what is it for (Java)?
I have checked Selenium documentation and I can see that there are three different WebDriverWait constructors including this (Java):
public WebDriverWait(WebDriver driver,
java.time....
1
vote
1
answer
137
views
Importance of having tests in home test assignments when applying for a new job
I've been a part of the interviewing process for Software Engineering positions (including QA engineers as well) in our team for the past several years and I am still struggling to determine my ...
2
votes
1
answer
2k
views
How to check if webpages are completely loaded?
I would like to automate the following process:
Create a sitemap of a certain domain.
Check all pages are up.
I don't come up with any good enough tool for the second step. I used to assertion if an ...