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
4
votes
6 answers

how to find main activity in apk file for robotium tests

I have a lot of apk files and I want to write simple tests with robotium for them. I have some problems, when I tried to find Main Activitys for them, in Dropbox app as example. In AndroidManifest.xml i found this:
user1835337
  • 656
  • 1
  • 9
  • 32
4
votes
4 answers

How to automate by Firefox browser for functionality testing?

I have to automate the Firefox application to do Functional testing, kindly help me which testing tool I can use. thanks
4
votes
2 answers

Running Selenium tests in Jenkins

I have recorded some simple selenium tests by Selenium IDE. Now I want to run those tests in Jenkins. Which plugin to Jenkins do I need to do that? And how to run the tests step by step? Help is appreciated.
user2075878
  • 41
  • 1
  • 3
4
votes
2 answers

Testcase level variables in [Documentation] for robot framework

I cannot get test level variables to appear in documentation. Let's say I have this testsuite: | *Variables* | | ${SystemUnderTest} = | Staging | *testcase* | | Device Test | | | Set Test Variable | ${device} | iPhone | | [Documentation] …
Skip Huffman
  • 5,239
  • 11
  • 41
  • 51
4
votes
3 answers

How to get started with TDD using Winforms

I have read/watched so much about TDD & BDD recently that I really want to master it. I have been a developer that only writes code and then tests it from outside (like we always started). The problem seems to be in getting up and running with TDD.…
Afraz Ali
  • 2,672
  • 2
  • 27
  • 47
4
votes
1 answer

How to set up .cabal test-suite when test file and the file under test is in different folder

I am trying to structure my simple project in a way that it's easy for me to develop in the future. Basically I've used cabal init to get the basic stuff, then I created a src folder, inside that i created a main folder and a test folder, the main…
HHC
  • 2,513
  • 2
  • 18
  • 26
4
votes
2 answers

Selenium WebDriver. After waiting for the element click() freezes test

I need to click on the dynamically generated element using Selenium WebDriver (Java API). I'm waiting for this element to appear with WebDriverWait and then clicking on it. This click succeeds but the following click on the different static element…
yaromir
  • 378
  • 7
  • 17
4
votes
4 answers

StaleElementReferenceException: Element is no longer attached to the DOM: Selenium

I am completely new to automation testing. After referring some tutorials, I have created an automated test case. The test case I try to automate is to check whether the sorting worked correctly after I click on one of the headers of a table. My…
user1400538
  • 855
  • 5
  • 24
  • 42
4
votes
3 answers

sniffer can't find DJANGO_SETTINGS_MODULE

I'm trying to automate the test rerun after a change while developing. After searching around a little sniffer seemed fine. But if I run it my tests fail with this error: ERROR: Failure: ImportError (Settings cannot be imported, because environment…
optikfluffel
  • 2,538
  • 4
  • 20
  • 27
4
votes
5 answers

Automated GUI Testing .NET CF (Windows Mobile 5)

My company is looking into using automated GUI testing for our current app before proceeding to alpha. Our current main focus is robustness testing, one way we want to achieve this is automated UI testing that can be repeated over several…
chocojosh
  • 897
  • 2
  • 11
  • 16
4
votes
2 answers

How can I run a QTP test from the command line?

There are a few situations where I need to launch and run a QTP test from the command prompt. For example, I'd like to use Windows Task Scheduler to run QTP tests at various times throughout the night, but there is (seemingly) no flag that I can use…
Michael Innes
  • 2,045
  • 5
  • 25
  • 41
4
votes
2 answers

How to supply arguments using CMake and CTest?

In the test that I want to run using CTest I should be adding the test that I want to run, with the following command: add_test(TestName ExeName) The problem is what if I want to supply an argument to the TestName, where do I put it? How do I run…
Alexander
4
votes
5 answers

Selenium plugin for mobile app testing OR any other better & suitable tools for mobile app testing

Is there any plugin for Selenium to run automated tests for an (own) app on mobile devices (for the OS iOS, Android and Windows)? I have searched for 2 hours but the information I found is quite confusing in my opinion.
user1828928
  • 483
  • 1
  • 5
  • 11
4
votes
1 answer

UI test automation beyond your own app?

Is there some framework which allows to control whole Simulator (to be able to test not only inside your own app, but other apps too)? I read about: UIAutomation Test studio for iOS MonkeyTalk UISpec However, per my understanding, all of them…
Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
4
votes
4 answers

How to test webapp with different versions of IE from single windows machine?

I need to test a Web application on different versions of IE (IE9, IE8 & IE7). I found that IE9 provides the compatibility view for IE8 & IE7 so I had installed IE9 in my test system. There is one header META tag "X-UA-Compatible" by which you can…