SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Advanced Member
    Join Date
    Sep 2011
    Posts
    524
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    script giving general run error on specific system

    Has someone experienced a problem that the same script is working on one syatem and not working on other system (with same OS (Windows 7 Professional) and same IE version (IE8)).

    I am getting "General Run Error" when the script reaches this line of code:

    objpage.webelement(....).click

    Can anyone please let me know, why it is happening and what can I do to troubleshoot?

    P.S. - I already formatted the system, reinstalled QTP 11 and then ran the script. It is giving same problem..

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: script giving general run error on specific system

    Check for ghost process in Task manager

  3. #3
    Advanced Member
    Join Date
    Sep 2011
    Posts
    524
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: script giving general run error on specific system

    Thanks Tarun,

    Is it by the name "ghost process" in task manager window?

    If yes, then it is not present.


    Please let me know if anything else can be done.

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: script giving general run error on specific system

    ghost process means a process which is running but not visible. Sometimes the IE processes are not visible but multiple processes are running in background. which can cause a simple code to fail. So you should check if there extra iexplore.exe processes running in task manager.

    Also when the general run error occurs. Just stop the test, open the OR and try to highlight the object and see what happens

  5. #5
    Advanced Member
    Join Date
    Sep 2011
    Posts
    524
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: script giving general run error on specific system

    Thanks Tarun for the reply, however, this also doesn't worked.

    To check this, what I did is: restart the computer on which this issue is happening so as to ensure that extra iexplore.exe processes are not running (I also checked manually this thing)

    Also, I am not using OR. I am coding using DP.

    I already tried the following (highlight the object and see what happens) but it is still giving me same error

    General Run Error
    objpage.webelement(....).highlight

    Please suggest what else I can do to alleivate the problem.

  6. #6
    Member
    Join Date
    Jul 2007
    Location
    Mumbai
    Posts
    203
    Post Thanks / Like
    Blog Entries
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: script giving general run error on specific system

    When you get the General Run Error, execute the following statement in the debug viewer, it will give you more detail about the error, which might help you in investigating further.

    DescribeResult(Err.Number)

    Thanks,
    Mansoor
    Thanks,
    Mansoor
    QTP Inside Out

  7. #7
    Advanced Member
    Join Date
    Sep 2011
    Posts
    524
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: script giving general run error on specific system

    When I got the error, I go to debug mode and then type DescribeResult(Err.Number)

    in Name column of Debug Viewer > Watch Tab
    I got "The Server threw an exception" in Value column of Debug Viewer > Watch Tab


    Also, I tried typing msgbox err.number in Debug Viewer > Command Tab

    I got 2147417851 as pop up

    Can anyone please suggest me, what to do now to troubleshoot this issue?

  8. #8
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: script giving general run error on specific system

    try this

    objpage.webelement(....).object.click

  9. #9
    Advanced Member
    Join Date
    Sep 2011
    Posts
    524
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: script giving general run error on specific system

    still getting General Run Error

    This time, when I use msgbox err.number in debug mode, it gives 424

    and when I use describeresult(err.number), it gives ""

    Please let me know, why it is happening only on specific machine with same configuration..

  10. #10
    Advanced Member
    Join Date
    Sep 2011
    Posts
    524
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: script giving general run error on specific system

    Can anyone please let me know, what else can be done to resolve this issue?

    Is this because of some Add-On etc?

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:11 PM.

Copyright BetaSoft Inc.