SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Oct 2001
    Location
    Cambridge, MA, USA
    Posts
    263
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best place to handle in page web site error messages?

    I am using Silk 5.x to test a web application which provides it's own version of the "This page can't be displayed" error message. I want to set up my test frame so that it will figure out that I've reached that page, log the error, and move on with subsequent tests.
    I've thought about re-writing TestCaseExit(), but I'm not sure that's the right place.
    Suggestions?
    Thanks.

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best place to handle in page web site error messages?

    I write my scripts within a do ...except loop so that when an error is encountered the script jumps to the except statement where I can look for known errors and then continues on thru my script.

    MikeF



    ------------------

  3. #3
    Senior Member
    Join Date
    Oct 2001
    Location
    Cambridge, MA, USA
    Posts
    263
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best place to handle in page web site error messages?

    What I ended up trying:
    - decided that if the test case reached a 404, it's history anyway, so let it fail,
    - modified TestCaseExit() to recognize if this error message page is around, and print to the log file that this up.

    I'm now struggling with the fact that once SilkTest gets out of your script, and into TestCaseExit(), it doesn't seems to keep the window in the AUT active. And I can't seem to find out which window IS in the browser. Browser.GetActive() just returns BrowserPage, so that's useless.
    Segue support suggested GetNextCloseWindow() but that didn't help either.
    Any suggestions out there?

    ------------------

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best place to handle in page web site error messages?

    I echo the initial reply by Mike. I handle everything with a do/except. It gives me complete control of what happens to the script.

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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:54 PM.

Copyright BetaSoft Inc.