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
3 answers

Can't seem to be able to bypass this error - "element not interactable"

So all I want to do is automate a login through WebdriverIO. This is the LoginPage class where the error occurs, login function - "element not interactable" class LoginPage { get inputUsername() { const username = $("#username"); …
3
votes
1 answer

Maven run all tests from a package

I have difficulties to run all tests from a package with mvn command. I have tried solution recommended on stackoverflow: mvn '-Dtest=de.mypackage.*Test' test but with no success. Everything is fine with executing specific class or tests but I…
johnnycode
  • 53
  • 5
3
votes
1 answer

Getting Build Test Results from Azure DevOps in C# app

I am making a program in ASP .NET Core and I am trying to get the Test Runs for specific build in specific Build Definition. So far I have created some some methods which can get the build definition and all night builds for that specific build. Now…
Apuna12
  • 375
  • 2
  • 6
  • 23
3
votes
0 answers

Allowing 3rd party cookies in Chrome Webdriver configuration

here's the situation: I load a website A in incognito mode using Selenium Chrome Webdriver. In this website there is a iframe loading information from website B. Chrome Incognito mode blocks the iframe contents because treats it as a 3rd party…
3
votes
2 answers

PLAYWRIGHT testing - How to skip to the next action if a click on a button is not possible (is not present)?

as anticipated in the question, I'd like to know if is possible to attempt a click action on a button, but if it's not in the page then the test skip that action (without being stucked or throwing an error) and continue to the next one. To be more…
3
votes
1 answer

Test if a pressed button performs a redirect to a correct page?

I'm writing a test with playwright, and I'd like to know the most correct way to check if - after a press of a button - it emitted a redirect to the expected URL, in order to pass the test. I've found this snippet but it gets stuck: const [request]…
3
votes
1 answer

Cypress: Get child element of parent based on another child element

I have 2 div collapse
Apple
Apple 1 Apple 2 // get this item Apple 3
Samsung
hyphens2
  • 166
  • 6
  • 15
3
votes
1 answer

Working with TTabSet in TestComplete scripts

I am attempting to click a TTabSet tab for our Delphi application via VBScript (used in test automation) but am having difficulty doing so without using page coordinates. Does anyone have experience using this tab class? Using TestComplete's Object…
3
votes
3 answers

How to compare text content of two elements via array

I need to compare if two different elements contain the same text. Case: I have 5 different buttons time periods lets assume they are "Day, Week, Month, Year, Decade" Every time when I click on some particular button I want to compare if the value…
wojnarto
  • 411
  • 4
  • 9
3
votes
0 answers

App that converts image to base64 string displays different results on browser's console when run in headed and headless mode. Does anyone know why?

I'm using Playwright to write an automated test for a Node.js app. The app has a test web page with a button that allows to manually select an image, which will then be processed and converted to a base64 string, which will be logged on the…
3
votes
0 answers

Testing React Router: click event does not trigger page navigation

Background I am testing if a page changes on a button click inside my reactjs project. Routing and changing pages are handled by react-router. There is a button that redirects the page to /my-page. Sample code Here is the code:
3
votes
1 answer

Access token in Selenium

is there some way to pass access token to Selenium tests, so that I dont have to use login page (I can not do that, because of the company policy). I get the access token based on client id and client secret. Thank you
Urago
  • 47
  • 1
  • 7
3
votes
0 answers

Add and run GitHub Actions on feature branch?

I'm currently using the "git-flow" branching model outlined here. Following that model, once I've completed work on a feature branch, I'd like to add new GitHub actions to that branch (for example, to run my feaure's automated tests) before the…
Michael Hillman
  • 1,217
  • 3
  • 15
  • 24
3
votes
1 answer

CYPRESS: Function to check if an button is disabled or not

I have the following problem. I want to write a function that can be used to check whether the search button is deactivated or not. If the search button is deactivated, then carry out the next steps - fill out the search fields and click on the…
Kamen K.
  • 31
  • 1
  • 1
  • 4
3
votes
1 answer

Is there a way to change the browser locale in Cypress?

I have looked around online and quite a bit on stackoverflow and cant seem to find an up-to-date answer for this question. I have found other questions here, here, and here - and none of those solution work anymore. Does anyone know if this…
arctic
  • 609
  • 3
  • 11
  • 19