Micro Focus QTP (UFT) Forums
How to merge the scripts? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to merge the scripts? (/Thread-How-to-merge-the-scripts)



How to merge the scripts? - Shama Ahsan - 04-12-2011

Hi Basanth,
1.how to merge the scripts??
e.g i have 10 scenarios for login, valid invalid etc. i prepared scripts for each separately in QTP, at the end i want to put these all at one place and in running form, how to do this??

2. if i want to add customize message in my report, is it possible??

3.i recorded scripts, these were working properly, i chekd 5 times, but when it was time to show up the scripts to my boss, that naughty scripts dint work Sad
whats the issue?

Regards
Shama


RE: How to merge the scripts? - basanth27 - 04-12-2011

Shama -

Answers in sequence:
1. You can use the "Copy of action". Create a new test, and call all of the tests as copy of action.
2. Yes it is possible. What kind of customization you are looking forward for?
3. I am not sure until you tell me what the error message is when you showed it to your boss. I guess the scripts were scared of your boss Smile
Just kidding..


RE: How to merge the scripts? - Shama Ahsan - 04-12-2011

Basanth
thanks for your quick response.
1. well, let me try this, if i got issues, i would let you know.
2. e.g i want to add a message " User has Login successfully"
how can i add this in reports??
3. it could be Big Grin Login script was working properly earlier but later it showed error message "user name and password incorrect"


RE: How to merge the scripts? - basanth27 - 04-12-2011

Use the below statement,

2. Reporter.ReportEvent micpass, "Login Report", "User Has logged in Successfully"

3. Please describe the entire scenario with the code and the error clearly. This will help me revert back at the earliest.