Junit Help needed in setting up a framework - TechRepublic
Question
October 12, 2009 at 04:07 PM
getafix14

Junit Help needed in setting up a framework

by getafix14 . Updated 16 years, 9 months ago

Hi Everyone ,
Can anyone please assist me in creating a framework in Junit in creating a master / driver script.
I will elaborate my situation

The following is the total test cases i have in eclipse
1.Loginmain
2.UseRobot
3.CG_MAN_002
4.CG_MAN_003
5.CG_MAN_004
6.CG_MAN_005
7.CG_MAN_006
8.CG_MAN_007
9.CG_MAN_008
10.CG_MAN_009
11.AllTests ( this is a testsuite)

What i wanted is as follows:

On running the test suite AllTests

1.I want the Logimmain script to be executed once ( i.e. user logins to the application and the browser should remain open))
2.After that the test cases starting from( CG_MAN_002 to CG_MAN_009) should get executed one by one( these are the tests performed on the manifest tab of the application)
3.The testcases CG_MAN_002 to CG_MAN_009 while running should be able to call the UseRobot method( this is like a global helper class)

These should be possible on running the test suite AllTests

How to structure this in junit
Very much appreciated
Thanks

This discussion is locked

All Comments