New answers tagged testng
Without seeing your code its hard to say what is wrong but you are using extra starttest statements somewhere. Your post heading is misleading as this is due to incorrect usage
Agree if we use exclude under method tag. I have another solution - Remove "methods" tag from "class" Do not include any method under with prefix "include" While writing code use can use those methods which you really wanted to use Hope this helps !
Testing with minimal number of actions in AUT (just clicking menu buttons) performed under UFT 12.52 did not show any slowing down in AUT after 2 hours and 30 minutes of execution, but after that time 2:30 - 3:00 application started to work slowly and finally stopped responding. Heap analysis shows that testng does not occupy more than 2,2 MB. And time of ...
I don't know the answer, but I know how I would try to find out. I would try two experiments: Your test is making the AUT do a lot of some kind of work. Try to find a way to run that part of the AUT without using TestNG, e.g. by modifying the AUT to perform those operations for some number of iterations. Watch for whether it crashes, and whether it uses ...
The simplest way to start test automation project from another one would be to sent command line command: Process process = Runtime.getRuntime().exec("java org.testng.TestNG C:\path-to\testng.xml"); or call some parametrized .bat file so not to write lots of dependencies in java code. E.g.: Process process = Runtime.getRuntime().exec("run-suite.bat C:\...
Eclipse does a lot of voodoo behind the scenes to make sure everything is plugged together in a really big an robust way. Good for your development environment, but way overkill for production. Java only knows to look in very specific places for bytecode to load into it's runtime. If you want runtime flexibility to load classes within your gui from ...
Why exception arise? The reason behind the exception you have mentioned is because with your test script you are trying to locate an element that doesn't exist in the webpage you are trying to test. How to resolve? Well, along with the text you have provided, the console would also have given the line number in the test script where this exception ...
Robot Framework. It is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). It has easy-to-use tabular test data syntax and it utilizes the keyword-driven testing approach. Its testing capabilities can be extended by test libraries implemented either with Python or Java, and users can create new higher-...
Yes. You can create an application to run your test scripts, when you create your test projects they are just libraries/dlls that you have created and they do work just like any other library/dll. add to references and you should be able to call specific tests and get their pass/fail value when they are finished.
Top 50 recent answers are included