The topic that today i choose to write is how to delete test results using command prompt. I know people will call me fool as if we have the tool that and visually we can delete the test results why should we learn how to delete test results using command prompt... :-)
The argument is valid by its just for learning purpose and may be some day you will need a code to be part of QTP to delete the results of the executed script
Consider the Senario.
You created a script and at the end of script you write a script that delete all the logs and test results so that when you will ship your script to client or to any other machine it will not take much time. or you need to delete the scripts that were created after a specific date. so What you will do my friend. You have to search Google and here is the solution..
Open Dos Prompt and Go to
TestResultsDeletionTool.exe directory and then write this command
TestResultsDeletionTool.exe -Silent -Test "X:\Test\testabc" From Date "01-01-2011"
the above mentioned command will delete the test results of testabc from "01-01-2011" and results before that date will remain
and Silent means it will work silently without asking any question.....
If you wish to delete log file along with test results u can use
TestResultsDeletionTool.exe -Silent -Test "X:\temp/mylog.txt" "X:\Test\testabc"
You can also delete logs/test results recursively depending on the requirnments.
TestResultsDeletionTool.exe -Silent -Test "X:\Test/Test" -Recursive
There are so many options that we can use depending on the requirements. for more details regarding result deletion tool study HP notes
No comments:
Post a Comment