Forum Discussion
sharma2prateek
Occasional Contributor
Let say I have 3 modules A, B, C
A module have 10 test case which is run by X script
B module have 12 test case which is run by Y script
C module have 15 test case which is run by Z script
In this case I need one test summary report which have 37 test cases, but currently it create 3 summary report with 10,12,15 test cases
Hope now its clear
So In general a problem is I need to execute a piece of code which will execute before and after x, y, z scripts run.
Also it will run before and after if I run x script individually.
A module have 10 test case which is run by X script
B module have 12 test case which is run by Y script
C module have 15 test case which is run by Z script
In this case I need one test summary report which have 37 test cases, but currently it create 3 summary report with 10,12,15 test cases
Hope now its clear
So In general a problem is I need to execute a piece of code which will execute before and after x, y, z scripts run.
Also it will run before and after if I run x script individually.
tristaanogre
6 years agoEsteemed Contributor
Instead of calling your code in the event handler, you should run your code as project items, one the beginning, one at the end.
- sharma2prateek6 years agoOccasional ContributorYup that is a alternative but Is there any way or technique by which we automatically invoking the code before project run and after project run not on project test items level
- tristaanogre6 years agoEsteemed Contributor
No. Event handlers don't exist to go on project start/stop. So, you would need to add the code manually to those points.