SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    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)

    VerifyProperties ({...})

    If the Caption of a DialogBox changes all the time, how do you handle the changes in a VerifyProperties ({...}) method?

    Example:
    testcase MyDialogPropertySet ()
    MyDialog.Invoke ()
    MyDialog.VerifyProperties ({...})
    " "
    {...}
    {"Caption", "Permanent Title - This Part Changes"}
    {"Enabled", TRUE}
    {"Focus", MyDialog.Field1}
    {"State", WS_NORMAL}
    MyDialog.Close ()
    ---------

    If I use the SubStr () in the "Permanent Title..." section, the Expected Result will be correct (say "Permanent Title" the rest of caption left out) but, the Actual Result will still return the full Caption which makes the testcase to fail. Any suggestions?

    Thanks.


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

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: VerifyProperties ({...})

    I don't see where is your problem, since you have a solution in your question

    Why do you even use the verifyProperty?
    Can't you use:

    1)LIST OF STRING GetEverything()//get properties??
    2)make change and compare

    Correct me if I am wrong.

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

  3. #3
    Senior Member
    Join Date
    Aug 1999
    Location
    Irvine, CA
    Posts
    157
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: VerifyProperties ({...})

    If you want to verify that your window has the same prefix in the caption, try using the "fuzzy" option for VerifyProperties. Here is some sample code:

    window MainWin Explorer
    tag "$C:\WINNT\Explorer.exe"
    FUZZYVERIFY FuzzyVerifyProperties = TRUE
    Menu File
    tag "#1"
    ...

    Main()
    Explorer.VerifyProperties ({...}, TRUE)
    ""
    {...}
    {"Caption","Exploring - "}

    This will always succeed when the caption is as follows:
    "Exploring - C:\"
    "Exploring - D:\"
    "Exploring - E:\SilkTest"

    Check the help topic for VerifyProperties. It explains a little more on how the fuzzy option works.


    ------------------
    Matt Gray
    Kofax Image Products
    Matt Gray

  4. #4
    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: VerifyProperties ({...})

    Matt Gray,
    I was afraid someone will point me to using the FUZZY Verification way which is what the Online Help is talking about. I was kind of hoping if there is another way...Thanks anyway.

    GodKnows,
    Since VerifyProperties ({...}) is available, I was hoping it works well also. I was only interested in verifying certain properties not all. I don't know if VerifyEverything () would take care of only getting portion of a caption either!?




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

 

 

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 11:02 PM.

Copyright BetaSoft Inc.