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
1 answer

TestCafe - Resizing window in .beforeEach and receiving warning in report about browser window being resized during video recording

I have set up all the video recording options in my .testcaferc file and have just added a beforeEach test hook in my fixture to resize the window to 1920 x 1080. Everything works fine, except my reports now warn me about the browser window being…
3
votes
1 answer

Should be Cypress testing framework be installed separate from the testee project?

I have a big web project with a separate backend and a front-end (webpack). I'm going to use Cypress to create end-to-end tests. What is not clear is where I should add the Cypress tests and Cypress itself. The documentation says to add it right to…
mimic
  • 4,897
  • 7
  • 54
  • 93
3
votes
1 answer

Which would be the best choice when having to reuse selectors in Cypress?

I know Cypress team encourage to use actions instead of page objects, so which would be the best choice when having to reuse an element? I don't want to be updating a selector in many places so I went for this…
Vicente
  • 45
  • 2
3
votes
1 answer

How to allow screen.getByText() to fail in jest + react test

I have a testcase. This project is using @testing-library/react it('renders content if loading is false', async () => { await waitFor(() => { render(foo); }); const loaderElementText =…
Our_Benefactors
  • 3,220
  • 3
  • 21
  • 27
3
votes
2 answers

Cypress how to use 'cy.get' between two elements

I want to search for an element and if I don't find it, find a second element: cy.get(@firstElement).or(@secondElement).click() Is there some function I can use like || in conditions?
3
votes
0 answers

Appium codeceptjs javascript Android iOS locate element

How to locate item by accessbilityId (contentDescritpion) in Appium iOS and Android? For me this code works: When('I tap {}', (button) => { I.tap(button); }) I have TabLayout and it can be found by android:contentDescription but how can I click…
Kyryl Zotov
  • 1,788
  • 5
  • 24
  • 44
3
votes
1 answer

Cypress shows the JS window._tcfapi error which I cannot reproduce from manual testing

Cypress test which reproduce this error https://github.com/Robot72/quantcast-cypress-issue/blob/master/cypress/integration/quantcast/check_errors.spec.js This test code: context('Navigation to our website', () => { it('Visit and check quantcast…
3
votes
0 answers

Sign in to Google account with Appium

I am testing an Android app using Appium. The app integrates with a google account. I would like to know if it is possible to sign in to Google Account with my own credential when the app startup by Appium. The example functionality in…
Jack
  • 31
  • 1
3
votes
1 answer

Selenium HTML attribute name to assist identifying content

I need to verify using Selenium (or similar framework) that certain HTML content/items are on the page using known unique identifiers. I have control over the generation of the HTML, so I will mark the HTML tags with an attribute, but sometimes the…
Bohemian
  • 412,405
  • 93
  • 575
  • 722
3
votes
1 answer

Disable printing of log output on console using pytest

I am writing tests using pytest and if my validation fails it generates a lot of logs which is needed. I am using the python's standard logging module to log these errors to a file using FileHandler class. I am using pytest-html to generate the html…
Saurabh Rai
  • 45
  • 1
  • 6
3
votes
0 answers

UITests not recording XCode (Version 12.5 (12E262))

I am trying to record UITests using Xcode 12.5 using the iPod touch sim on iOS 14.5 (18E182). The application appears to launch, the recording button changes to the stop icon as pictured below however no actions are recorded. This wasn't working on…
Alec.
  • 5,371
  • 5
  • 34
  • 69
3
votes
3 answers

Selenium, Siebel and QTP

I am about to start work on a UI automation project for a client who is using Siebel 7.5. I have been looking around and it seems that there is not a lot of info out there on if it is possible to automate GUI tests in siebel using Selenium. The…
David Colwell
  • 2,450
  • 20
  • 31
3
votes
0 answers

D365FO RSAT Action ExecuteHyperlink is not supported

I am using D365FO Task Recorder to document a test case where the user clicks on a hyperlink in a dropdown control to see details of a certain type of item. The downloaded XML runs in the Playback Recorder without issues but RSAT cannot Generate…
3
votes
2 answers

Retrieve and compare the style attribute of an element periodically using using cypress

I have a time indicator that travels over a timescale, the indicator's style attribute value keeps on changing for every x milliseconds and I need to get, store and compare that the previously captured value is greater than the latest value. Initial…
Dhamo
  • 1,171
  • 3
  • 19
  • 41
3
votes
0 answers

Mouse down on specific positions of an element in WebdriverIO

I would like to move my mouse pointer to a specific position over a canvas relative to its top left (0, 0) coordinates, hold my mouse down, move it to another position on the canvas and release (similar to drag and drop but on a single canvas/same…
Dominic
  • 175
  • 1
  • 13
1 2 3
99
100