Thank you for this wonderful article. just a quick question, How does pretest getting executed? As posttest script is referenced in "test" script, but pretest not referenced anywhere, but still its cleaning the report folder and creating. if you could clarify how its getting executed, will be a great help.
Hi
Well.. that's the advantage of using pre and post scripts.. they are called automatically before and after the main script. So when we run the script 'test'.. the script 'pretest' would automatically run before it and the script 'posttest' would automatically run after script 'test' has finished execution.
I have also explained that in the video that is embedded in the post.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for this wonderful article. just a quick question, How does pretest getting executed? As posttest script is referenced in "test" script, but pretest not referenced anywhere, but still its cleaning the report folder and creating. if you could clarify how its getting executed, will be a great help.
Thanks in advance.
Hi
Well.. that's the advantage of using pre and post scripts.. they are called automatically before and after the main script. So when we run the script 'test'.. the script 'pretest' would automatically run before it and the script 'posttest' would automatically run after script 'test' has finished execution.
I have also explained that in the video that is embedded in the post.