SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Dec 2006
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to Verify a Page whether it is opened or not

    In case of WWW session there are are two options are there for page verification . they are DO_VerifyDocTitle() and Verify() .
    this two functions returns 0 if the verification fails and returns 1 if verification is successful.
    but when I am putting these fuctions through if Statement then also when validating scripts ,giving error Validation not successful .
    ex :

    if (DO_VerifyDocTitle ( "Login" , TITLE ) ==1 )
    RR_printf("Verification Successful");
    else
    RR_printf("Verification Not Successful");

    if we consider above example whether the "Login" window is available or not there should not be any validation Failed Error (Error No: WWW_ERROR_00140).

    If Some other functions are there for verufication pleae explain.



    Tanmay Kumar

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Michigan, USA
    Posts
    840
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to Verify a Page whether it is opened or not

    Not totally sure what you're asking...

    But if you are asking why your example would cause validation to fail if the response didn't have the title "Login" then from the QALoad help for DO_VerifyDocTitle:

    The function calls WWW_FATAL_ERROR, which either aborts the test or continues, based upon the ABORT_ON_ERROR flag.
    A problem is a difference between what is perceived and what is desired, that
    we want to reduce
    (Dewey 1933)

 

 

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 11.54%
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 02:17 PM.

Copyright BetaSoft Inc.