-
Contributing Member
QTP script is not working on other's machine..
Hi Guys
I need help with QTP. I have recorded one script and saved it in a Quality Center. Now if my manager or lead try to run that script they get error message and they are not able to run that script. The script is working only on my machine.
what should i do, so My script can run in other tester's machine?
Please help
Thanks
Newhere.
-
Expert Member
Re: QTP script is not working on other's machine..
There are many reasons for the failure........
1. The QTP Settings on your machine
2. Screen resolution
3. I don't know...........(just kidding).
Solution for first problem
I guess the if there are failures due to object identifications...please ensure that u generate a script of QTP settings on ur machine & execute that script on ur peers machine
Solution for second problem
We too faced this problem....you need to align the graphics setting of ur peers machine in case they are varying from those on yours.
Solution for Third problem
hehehe
Regards,
Nawab
-
Junior Member
Re: QTP script is not working on other's machine..
What kind of applications are you testing? windows? web?
-
Junior Member
Re: QTP script is not working on other's machine..
Did anyone get answer to this question? I am looking for an answer to the same question.
-
Junior Member
Re: QTP script is not working on other's machine..
maybe some object have been lost what was in the object manage library,
maybe Screen resolution has changed as NawabShaikh 's said
the test target language select ...
some init file and path....(DB,ini file,xls)
......
-
Expert Member
Re: QTP script is not working on other's machine..
I have seen (in the past) this type of issue. below is scennario and the cause of the issue. However, your may not the same.
I came on a new project. there were some (bad judgement) existing scripts. IMO, These scripts were designed to run on the designed machine only. The reason is scripts were using data datables. However, datatables were initially attached to the QTP. When I ran the scripts they were not running, since the data cannot be retrieved.
Solution! I ported data in excel. modified the script to import datasheet from the Excel and manipulated the loaded data.
Hope this help, in some reason.
-
Expert Member
Re: QTP script is not working on other's machine..
hai friend,
The main reason why the scripts fail to run on another machine may be the path of the action, path of the data table, path of the function libraries.
For Ex: C:\Documents and Settings\Deepa\Desktop\test1.vbs
The above given is the path of my library function, it holds my desktop path if i use the same desktop path to run the scripts from my friends machine or some ones machine the script will 100% fail due to the path. so what i suggest you to add the required file, libraries and what ever you need in a common C:\ and then ask your friend else team lead to put all the necessary files in the same C:\ and execute it.
Note: Your entire team should agree the above what i have said above.
If they don't agree the above one use environment variable capture current path of all the files along the specific user id and then execute the test. Then your script will run without any problem.
Any issues let me know here..
Thanks
Deepa
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules