SPONSORS:






User Tag List

Results 1 to 5 of 5
  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 active window

    I have the window declarations for the registration page, profile page.
    ---------------------------------------------
    [+] window BrowserChild Registrationpage
    [+] window BrowserChild ProfilePage
    --------------------------------------------
    in my test case for registration test case I want to verify if the profile page is loaded after successful user registration.
    ---------------------------------------------
    [ ] use "c:\frame.inc"
    [ ]
    [-] testcase Registration()
    [ ] Homepage.Join.Click()
    [ ] String RandomString
    [ ] String Str
    [ ] String Str1
    [ ] Integer l
    [ ] Boolean bLinks
    [ ] Boolean bImages
    [ ] Boolean bMaps
    [ ] RandomString = (RandStr ("X9"))
    [ ] Str = (RandStr ("A(5)"))
    [ ] Str1 = (RandomString + Str)
    [ ] const password = "testuser1"
    [ ] Registrationpage.MemberNickname523.SetText("13EjCA v")
    [ ] Print ("The registered username is :" ,Str1 )
    [ ] Registrationpage.Password2.SetText(password)
    [ ] Print (" the userpassword is :", password)
    [ ] Registrationpage.ConfirmPassword2.SetText(password )
    [ ] Registrationpage.PasswordReminder2.SetText(passwor d)
    [ ] Registrationpage.EmailAddress2.SetText("password@w ebmd.net")
    [ ] Registrationpage.PostalCodeZip2.SetPosition(1,1)
    [ ] Registrationpage.PostalCodeZip2.SetText("98756")
    [ ] l = (Registrationpage.HealthPlan.GetItemCount())
    [ ] Print ("The number of items in the list are :" , l)
    [ ] ARRAY[l] OF STRING array1
    [ ] array1 = (Registrationpage.HealthPlan.GetContents())
    [ ] LIST OF STRING healthplan = array1
    [ ] String plans
    [ ] for each plans in healthplan
    [ ] Registrationpage.HealthPlan.Select(plans)
    [ ] Print (array1)
    [ ] Registrationpage.Accept.Click()
    [ ] Verify(ProfilePage.IsActive (),true)

    I also tried ProfilePage.VerifyActive()

    The test case passes even thought the profile page is not active.

    I checked the verification tab in silk test tool and the check box for verify active window is checked.




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

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: verify active window

    Could be the tags in your window declarations; if the ProfilePage tag also fits the RegistrationPage caption, then your verify won't work correctly, because it will spot the RegistrationPage, compare it against the tag of the window you actually want to verify (ProfilePage), and if the ProfilePage tag is ambiguous in some way then it might think that the window it can see (RegistrationPage) is ProfilePage; thus apparently verifying that ProfilPage is active.

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

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

    Re: verify active window



    Thanks for the reply.

    Yes. You are right. The caption of all the windows for the whole site are same. SO how do I verify the window. If I change the tag then it would be a problem again right.

    Please tell me how I can handle this.

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

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: verify active window

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by madhuraus:


    Thanks for the reply.

    Yes. You are right. The caption of all the windows for the whole site are same. SO how do I verify the window. If I change the tag then it would be a problem again right.

    Please tell me how I can handle this.

    <HR></BLOCKQUOTE>

    If the URL's are different for the pages, you can use the Window ID as the tag as that's the same as the URL of the page. Very handy when the developers give every page the same title.

    - Dave



    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  5. #5
    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: verify active window

    If I understand the problem correctly, it parallels something I've seen here just beautifully. Our programmers in a fit of brilliance have left the caption the same for a number of "child" message boxes and dialogs. So, Silk is unable, by default, to distinguish each of these windows from the others or from the parent. As a workaround to this, what you can do, it tag these in such a way that Silk knows to look for something unique about each of the windows other than the caption, since that is not unique. Here is an obscure snippit from the help that deals with this.
    Hope that is helpful.

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

 

 

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 05:28 AM.

Copyright BetaSoft Inc.