SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jul 2001
    Location
    santa clara
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    verify window fails as same caption

    Hi,
    I am testing the webapplication

    and the tags for the 2 different pages are as below
    --------------------------------
    [-] window BrowserChild ProfilePage
    [ ] tag "Free -- Books online"
    [ ] parent Browser
    ------------------------

    and
    [-] window BrowserChild Namesuggestionpage
    [ ] tag "Free-- Books online"
    [ ] parent Browser
    ---------------------------------------------
    The .t file
    [ ] use "c:\webmd\frame.inc"
    [ ]
    [-] testcase Registration()
    [ ] WebMDHealthHasAHomepage.Join.Click()
    [ ] Registrationpage.MemberNickname523.SetText("q0TEjC A")
    [ ] Print ("The registered username is :" ,Str1 )
    [ ] Registrationpage.Password2.SetText(password)
    [ ] Print (" the userpassword is :", password)
    [ ] Registrationpage.ConfirmPassword2.SetText(password )
    [ ] Registrationpage.Accept.Click()
    [ ] ProfilePage.VerifyActive()
    -----------------------------------------

    The profile page is supposed to be loaded after registration. But the suggested name page loads as the username is already existing.

    In this case my test case should fail as the verify active window failed. but it still passes as the caption of the window is same for all browser windows.

    Please suggest me how I can get this worked by quoting an example. I tried the multitag by declaring a windowID with the URL. Still not helpful.

    I tried to pick a unique item on the profile page but when the suggested name page is loaded some link on that page is being clicked instead of throwing an error.

    Thanks
    MadhuraUS


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

  2. #2
    Member
    Join Date
    May 2001
    Location
    New York, NY, USA
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: verify window fails as same caption

    Because the tags of both these windows are identical, SilkTest cannot differentiate between the 2. Therefore, it thinks that the window you have specified is actually active.

    The simplest way to fix it is to use DOM, instead of VO and use the windowID instead of the window caption to identify (tag) the pages. When using DOM, the windowID is the URL of the page. So, assuming the 2 pages you are trying to test have different URL's, the test will return the result that you are expecting.

    -Zareh

    ------------------
    Amelior Technology
    zarehk@ameliortech.com

 

 

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 02:10 AM.

Copyright BetaSoft Inc.