Structure of Test Script
Hello,
I want to know what is the best way to structure the automated test script. For ex: if I have a test that contains Login, Action1,Action2 and Logout
1) Test Script Structure Approach using Keyword Test:-
Create one Keyword test for Login, Action1,Action2 and Logout. Once you do that you create a project item and then create child item as Login,Action1,Action2 and Logout.
2) Test Script Structure Approach using Script and Keyword Test :-
Create one Script for Login, Action1,Action2 and Logout. After than create one Keyword Test and call all this 4 script Once you do that you create a project item with the keyword test.
3) Test Script Structure Approach using Script
Create one Script for Login, Action1,Action2 and Logout.After create one Main Script to call all the 4 script. Once you don that you create a project item with Main Script.
Please let me from the above which is the best way and the reason behind it. If you have another way which is not listed then mention it and also reason behind it.
Nimish