STQA Mini Project No.1: 6.1 Title
STQA Mini Project No.1: 6.1 Title
6.3 Prerequisite:
Knowledge of Core Java, Basic Concepts of Unit Testing, Test Cases Writing
using Junit etc tool .
6.7 Outcomes:
You are able to understand Unit and Integration testing with Tool with Test
Report.
4. Give Junit name to the project and check use project folder as root for source
and class files
5. Click on Next-> Next Screen will Appear-> Click Finish
10. Name test suite as JunitTest and choose New Junit4 test .
11. Click on add Checkbox
18. Write a code for Test case for calculate total angle inside JunitTest.
14. Let 4s run Junit_Test test case. Right click Junit_Test-> Debug As-
>JUnit Test
15. Result of test case is as follows. It shows 0 error and 0 failure and green
color test bar which means that test case has run successfully( Green Color Bar
Indicate).
16. Now test case should fail.(Brown Color Bar Indicate) So again run junitTest
as follows.
17. Now Create Test Report Using Apache Maven
If you use eclipse-java-photon-R-win32 Version it include Maven in built
installed so no need to install software via Eclipse help Install Software
Option .
18. Click on Help in Eclipse->Eclipse Marketplace->Enter Maven Keyword in
Search box->Select Maven Integration version as per requirement->Click on
Install .
23. Now Paste the code in between <dependencies> tag then save pom.xml file.
26. Now Go to
C:\Users\snehal\.m2\repository\org\seleniumhq\selenium\selenium-
server\3.14.0 Check the latest selenium server version.
27. Now go to Eclipse -> Click on Maven Test Project->Right Click on
src/test/java->Click New->Package->Give name to package mavenTest2.
28. It shows the manvenTest2 Package under src/test/java folder now rename
same by right click on mavenTest Click on Refactor->Rename->give another
name com.tem.mavenDemo->Click on ok-> rename as com.tem.mavenDemo
To run test suite or all test cases under project, give command mvn test
Enter E:\MavenTestProject>mvn test