Hi All

 

            I work as a automation engineer in organization and I am
responsible for automation test cases in Perl .

 

My parent  automated test Perl script generally has 3 sets . 

-          1st set has pre-configurations section of test script . It is
a separate script (called prerun, common to all test cases ) , which get
called from parent test script  . 

-          2nd set is coded inside parent script , which is real test
steps .

-          3rd set has clean up section (called postrun) . This is
common to all test scripts inside one test plan tar file .  Since it is
common to all , we have put this  in another common file and called that
common file  from all parent test scripts as : do $common_cleanup or
die("$@");

 

1.       which will delete running jobs , 

2.       check server running or not and

3.       undo configuration files changes (if anything is done in any
parent test script) . We need to skip this 3rd point for those test
cases which does not have this configuration , else these tests will
fail  , for that I need parent test case name inside postrun . How can I
print parent test script name inside this postrun ? 

 

 

Please let me know if you do not understand this scenario . 

 

Thanks

Sunita

Reply via email to