Questions tagged [automated-tests]

Test automation is the use of software to control the execution of tests, the comparison of actual outcomes to predicted outcomes, the setting up of test preconditions, and other test control and test reporting functions. Commonly, test automation involves automating a manual process already in place that uses a formalized testing process (wikipedia.org).

As per wikipedia.org:

Test automation is the use of software to control the execution of tests, the comparison of actual outcomes to predicted outcomes, the setting up of test preconditions, and other test control and test reporting functions. Commonly, test automation involves automating a manual process already in place that uses a formalized testing process.

There are two general approaches to test automation:

Code-driven testing. The public (usually) interfaces to classes, modules or libraries are tested with a variety of input arguments to validate that the results that are returned are correct.

Graphical user interface testing. A testing framework generates user interface events such as keystrokes and mouse clicks, and observes the changes that result in the user interface, to validate that the observable behavior of the program is correct.

The principle of automated testing is that there is a program (which could be a job stream) that runs the program being tested, feeding it the proper input, and checking the output against the output that was expected. Once the test suite is written, no human intervention is needed, either to run the program or to look to see if it worked; the test suite does all that, and somehow indicates whether the program's output was as expected.

Test Automation also has dedicated section in Software QA & Testing community.

13134 questions
3
votes
0 answers

Using Appium 5.0.0-beta01 & Selenium 4.0.1-Not able to launch android driver using AppiumLocalService()

I am trying to achieve parallelism in the android automation framework. Can anyone please guide me on how to achieve it, as I am unaware of it and this is my very own attempt. Please suggest how to achieve parallel execution of Test cases in .NET…
3
votes
2 answers

Playwright - How to test that a network request have finished after on click event

I am making BDD test with a Cucumber-Playwright suit. A page I am making a test for has buttons that will trigger a PUT API request and update the page (Note: The button will not link to new address, just trigger and API request). I want to make…
3
votes
1 answer

Cypress tests fail when running headless but pass when running on Cypress interface

I can run my test script on the Cypress interface with npx cypress open. In this case test runs pass. But when I run the same test script headless, it fails. What can be the cause of this issue? I run the tests always behind OpenVPN both when…
3
votes
3 answers

Playwright test failure in headless mode

I have a beforeAll function that performs the login in the application I am testing in every test.describe. When I am in headless: false mode, everything works perfectly. This is the beforeAll and the login function: //before alll…
Pelicer
  • 1,348
  • 4
  • 23
  • 54
3
votes
0 answers

How to check if all items in a SemanticsNodeInteractionCollection exist in Jetpack Compose unit testing?

Consider the following assertions: class BasicTest { @get:Rule val composeTestRule = createComposeRule() @Test fun myTest(): Unit = with(composeTestRule) { setContent { App() } // To check if a single node has a…
3
votes
2 answers

Compare two Session ID's in Cypress

I am new to automation and coding in general and I would like to compare two session ID values with the following steps: Get first value right after logging in Refresh page Get second value and make an assertion. I made a custom command in order…
3
votes
1 answer

How to clear browser cache within a Cypress test

Background: Hey all, I have a Cypress test I'm trying to write that should check whether an image URL has been called, after the image itself has been clicked on. Currently I run the test and it finds the image URL on the first run but when it is…
3
votes
1 answer

How To Run Multiple File Feature Automation Testing Using Behave On The Command Terminal

For an example, I have created some feature for automation testing using Behave login_account.feature and choose_product.feature. To run on a single feature, I use this command on the terminal behave -f behave_html_formatter:HTMLFormatter -i…
3
votes
1 answer

How to catch specific redirect using playwright?

when Google Map is to some level confirmed about a place search it redirects to the specific Google place url otherwise it returns a map search result page. Google Map search for "manarama"…
coolsaint
  • 1,291
  • 2
  • 16
  • 27
3
votes
1 answer

How to Create Automation Testing Scroll List Until the Element is in View

I have study case for doing automation testing using behave framework in python, I must find the element on the list in scroll view android. For the example list: List A1, List A2, List A3, List B1, List B2, ......., List Z100. I must be finding an…
3
votes
1 answer

How do I add a SOAP template from XSD in soapUI when XML extension is in place?

I need to make a large number of SOAP test cases to automate the testing process of an application. Currently, the architecture requires that a single "generic" SOAP method is invoked with an object of a generic type. Each "real" operation is…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
3
votes
1 answer

Karate UI Automation - driver.inputFile not working with ChromeWebDriver

I am working on an automation project that requires a file upload using Karate UI. Me and my team tried a few alternatives and using driver.inputFile() seemed to work just fine. However, we also run tests on headless mode with Browserstack, where we…
JVRD27
  • 31
  • 2
3
votes
1 answer

How to record windows authentication popup in playwright test framework

While recording test cases through the browser, the Windows Integrated Authentication window pops up, which needs a username and password for authentication. This is not being recorded by the PlayWright Headless test recorder obviously as this is…
yuvraj
  • 181
  • 1
  • 12
3
votes
0 answers

Extract specific value from chrome console log using java

I have data that I need to extract from chromes console log using java and selenium, im using LoggingPreferences logPrefs = new LoggingPreferences(); logPrefs.enable(LogType.BROWSER, Level.ALL); logPrefs.enable(LogType.BROWSER,…
user9686029
  • 252
  • 1
  • 2
  • 11