Forum Discussion

poyo_munandar_p's avatar
poyo_munandar_p
New Contributor
11 years ago

Sequences testcases

Hi, I tried to play with the *.pjs file. The orignal one is:

preCondition

testcase-1

testcase-2

testcase-3

postCondition

reportGenerator





I want to split that into 3 *.pjs:

First: 

preCondition

testcase-1

reportGenerator



Second:

testcase-2

reportGenerator



Third:

testcase-3

postCondition

reportGenerator



So I try to make the order the same with the original one only the reportGenerator that is always repeated for each *.pjs.





However, sometimes it does not work especially when the testcase-2 need to recognize an object from testcases-1. How can I handle this so it will keep working?





Thanks,





Poyo Munandar P
  • If a subsequent test needs information/data/objects from a previous one, you either need to write it out somewhere the second test can then go to find it, or store it in a project/suite level variable where everything can access it.



    I'm not sure of your exact project/suite structure, but using one or both of the above should keep it going in all scenarios.