Results 1 to 7 of 7

Thread: QTP script is not working on other's machine..

  1. #1
    Contributing Member
    Join Date
    Sep 2007
    Answers
    62

    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.


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Arrow 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


  3. #3
    Junior Member
    Join Date
    Aug 2008
    Answers
    5

    Re: QTP script is not working on other's machine..

    What kind of applications are you testing? windows? web?


  4. #4
    Junior Member
    Join Date
    Apr 2009
    Answers
    5

    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.


  5. #5
    Junior Member
    Join Date
    Apr 2009
    Answers
    2

    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)
    ......


  6. #6
    Expert Member
    Join Date
    Jun 2008
    Answers
    204

    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.


  7. #7
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact