SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2004
    Location
    Maryland
    Posts
    74
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to verify a window disappears

    Is there a way in QTP to test if a window disappears? In our app, there are three roles (Admin, Manager, Examiner). There is a data entry window that opens upon login by a Manager or Examiner.

    However, if you change from a Manager/Examiner to Admin while the app is open, the data entry window will close.

    I know this works, but I am trying to find a way to have QTP verify that a window disappears on changing login.

    Any help is appreciated. I hope my question is clear.

    Thanks.

  2. #2
    Senior Member
    Join Date
    Feb 2004
    Posts
    339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to verify a window disappears

    You can use the .Exist method and report whether or not the expected situation occurs.

    Another option I believe you can try is setting a checkpoint on that window for the Enabled or Visible property and set it to False after the login is changed.

    Good luck,

  3. #3
    Member
    Join Date
    Aug 2003
    Location
    bangalore
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to verify a window disappears

    Hi
    Write the Function

    Function CheckNotExist (dlg,Desc)

    if not dlg.exist then
    reporter.reportevent micPass ,Desc ,"Window Status"
    else
    reporter.reportevent micFail ,Desc ,"Window Status"
    end if

    then call the Function
    CheckNotExist Window("AdminWindows").Dailog("Login"),"Admin Window"


    Regards
    Girish
    girish

 

 

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.71%
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 11:37 AM.

Copyright BetaSoft Inc.