SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Jul 2006
    Location
    Bangalore, India
    Posts
    128
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Wait for Frame load in a browser ...

    I am sure this must have been discussed many times in this forum and it appears that we dont have a clear solution yet on this.

    My situation is like this. I have a web app that has a left navigation frame having a tree control much like a windows explorer window.

    all the test cases in my app start from navigation in the left frame. What is happening is when I execute script that navigates in the left tree - browser (IE) is crashing. This is very consistent. The crash does not happen if we run the script in debug mode. Developement team was consulted and they confirmed that there is nothing wrong with app.

    After some experimentation we have figured out that it is a timing related issue. TP is trying drive the AUT faster than AUT's speed of response. In all crash cases - this is common.

    I explored various ways staring with raw pause for specified time, events and wait - nothing is working.

    When I talked to a compware person - he told that in TP5.4 they have enhanced synchronization for web apps -hence TP will wait for app to load.

    Two possible directions for solution

    1. Use existing TP API or classes - I wonder why TP classes like HTMLFrame, HTMLDiv and HTMLBrowser - dont have property like "Loadcomplete" and anything that indidates event the content for that specified container is loaded or not. There seems to be little support for this TP

    2. This is out of TP route. Hook up to IE object via create object and see if that supports any such wait.

    I have not been very successfukl at any of above. The experimentation is ON ..

    Any help/views and directions will help ...

    Shrini
    Shrini Kulkarni
    Test Consultant
    Bangalore

  2. #2
    Member
    Join Date
    Nov 2005
    Location
    India
    Posts
    36
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Wait for Frame load in a browser ...

    U can try out this Code as it waits for some time to load the Frame, once it get Loaded, U can proceed in executing the App.
    WaitTime = 1

    Do While Not HTMLFrame("Name=", tpAttachNoWait).Exists
    Pause (1)
    WaitTime = WaitTime + 1
    if (WaitTime > 10) Then

    TestLog.Comment " Time exceeds 10 seconds for finding name HTMLFrame going to Error Mode "
    Exit Do
    End If
    Loop

    Next Statement....and so on, As I haven't found any such property for HTMLframe Loading ..

  3. #3
    Junior Member
    Join Date
    Aug 2006
    Location
    Bangalore
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Wait for Frame load in a browser ...

    We had a similar problem where IE was crashing when we were running Test Partner Scripts....
    I am not sure if it was crashing due to the same reasons as yours or something else..
    However we tried the approad below and were successful...
    You might also give it a try..

    Navigae to the Registry Key:
    HKEY_Current_User\Software\Compuware\TestPartner\B rowser\LearnFrameSize

    Make this Value as 0.

  4. #4
    Senior Member
    Join Date
    Jul 2006
    Location
    Bangalore, India
    Posts
    128
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Wait for Frame load in a browser ...

    KTest,

    I am skeptical about any time based ( wait for 10 or 20 or 30 sec) kind of soution as it will not work in all situations.

    As per your code, the script needs to exit and report "unable to proceed" if frame does not load in 10 secs. Some times our applications take more time to load some times less...

    I will explore tip by Madhukar and see if it helps

    Shrini
    Shrini Kulkarni
    Test Consultant
    Bangalore

  5. #5
    Senior Member
    Join Date
    Jul 2006
    Location
    Bangalore, India
    Posts
    128
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Wait for Frame load in a browser ...

    I have got the solution...

    It appears that a service pack installation on the top of TP5.4 has fix for this problem.

    those who are in the same situation - contact compuware support and get the patch installed. No point in wasting time in figuring out programatice ways to solve the this problem considering it as a "Timing-synchronization" issues
    Shrini Kulkarni
    Test Consultant
    Bangalore

 

 

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 10.34%
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 12:34 PM.

Copyright BetaSoft Inc.