7. Appium Installation (TestNG)

7. Appium Installation (TestNG):
1. To install TestNG plugin for unit testing, goto Menu bar and select Help-> Install new software. Enter "https://dl.bintray.com/testng-team/testng-eclipse-release/6.14.3/" in the Work with box Click the Add button.


2. In Add repository dialog. Enter "TestNG" in the Name Text Field. Click on the Add button.



3. Now, select the "TestNG" checkbox and click on the "Next" button.


4. It will give you a review of Items to be installed. Click on Next.


5. Select the radio button "I accept the terms of the license agreement" and click on Finish.


6. If you encounter a Security warning, just click "Install Anyway".


7. Wait for the installation to finish. When Eclipse prompts you for a restart, click "Restart now."


8. After the restart, verify if TestNG was indeed successfully installed. Click Window > Show View > Other.


9. Then open the Java directory and see if TestNG is included.


i. It makes testing.xml of artifact id.
ii. testing.xml defines different classes in a single xml file. 
iii. One can run the xml file using testing suite.

The TestNG Eclipse plug-in allows you to run your TestNG tests from Eclipse and easily monitor their execution and their output. It has its own project repository called testng-eclipse. TestNG is better when you want to execute tests in specific order. JUnit 5 doesn't support parallel execution as of today. TestNG supports parallel execution if run through XML suite. TestNG is better for parallel execution as of now, JUnit 5 development is going on to support this feature.

No comments:

Post a Comment

Cypress from beginning