SPONSORS:






User Tag List

Results 1 to 8 of 8

Thread: Web Testing

  1. #1
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Web Testing

    Hi All

    I have a problem in testing my web application. I have lots of pages in my application. For ex. lets say there are pages named as page1, page2, page3 etc.
    I am in page1 and clicking on a link which goes to page2. I need to check whether page2 exists or not after clicking the link. How do i do it?I have tried Exists method. It returns true always(i.e if i am in page1 or page2). It happens with IsActive() and IsEnabled() methods.
    Does anyone know the answer to this.
    Please do reply.
    Regards.

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    Dublin, Ireland
    Posts
    152
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web Testing

    Hi Sandeep,

    Have you tried the GetLocation () method, defined for objects of the class BrowserChild?

    John.

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

    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com
    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com

  3. #3
    Junior Member
    Join Date
    Jul 2000
    Location
    Rosemont, IL USA
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web Testing

    ...page2.exists() will return true if in fact it's page1 that exists only if you used the same tags, resolve these conflicts and you should have no problems. also, you can use the SetActive() method which raises an exception then handle it from there.
    john yu

  4. #4
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web Testing

    Hi John

    Thanks for the reply. I have a question. When i record the windows for my web application all of 'em have the same tag.
    Does our changing of the tag manually would work. Because when i tried this the silk records it as the same old tag, irrespective of whatever we ve changed.
    Thanks in advance

  5. #5
    Junior Member
    Join Date
    Jul 2000
    Location
    Rosemont, IL USA
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web Testing

    Sandeep,
    ...recording is useful only so you know how and what guis silk recognizes in your application, you have to do a lot of editing to clean it up afterwards. For instance, you may have a recorded frame like...
    BrowserChild Page1
    tag "pagetitle|#1|$http:www*"
    the best tag to use would be "pagetitle"(only), and when you record actions against this page Silk should know you're in Page1. However if you have ten other pages having the same title "pagetitle" your only option would be to find a gui that is unique to page and use that for a tag:
    BrowserChild Page1
    tag "/[BrowserChild]pagetitle/HtmlWhatever]WhateversTag/.."
    ...but now recording actions on this page will not record that you're in Page1, again you have to manually edit. SetActive() or Exists() will be resolved at runtime.
    john yu

  6. #6
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web Testing

    HI John

    Thanks for your reply and sorry to bother you again. Is there any way to force silk to see the Index tag also. Because when i record a window, i have two browser childs for the window. But it is not seeing the index tags. I did go to the options and checked the index part and ran the script again. But still it is not able to do it. Please let me know if there is any way around.

    Thanks

    Regards

  7. #7
    Junior Member
    Join Date
    Jul 2000
    Location
    Rosemont, IL USA
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web Testing

    Sandeep,
    ...you can always manually include "#1" in your tag but if you do so then when you call
    ...Page1.Exists() it will always return true since anywhere you are in your app, even if your not in your app, say your on this page right here, so long as there is one browserchild then that statement will resolve to true and we're back where we started. Index should be avoided, specialy for Browserchild. if you don't care where you are in your app and say...you just want to set the browser command line to go somewherenyou canuse index.
    john yu

  8. #8
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Web Testing

    Sandeep,

    Try separating the other BrowserChilds and see if this helps:

    window BrowserChild Page1
    tag ...

    BrowserChild Page2
    tag ...
    BrowserChild Page3
    tag ...

    Branch out of Page1 like:
    window BrowserChild Page2
    tag ...
    parent Page1
    window BrowserChild Page3
    tag ...
    parent Page1


 

 

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 09:26 PM.

Copyright BetaSoft Inc.