SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Apr 2000
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Error running a test case for a generic window

    Hi All,

    I'm testing client server app.
    I have a window which can have different parents or no parent at all, depending on the path of execution.

    I have defined that as a generic window. I have recorded following testcase.

    [-] test1 ()
    [-] recording
    [ ] AD.SetActive ()
    [ ] AD.Tables.DefQual_CB.SetText ("qaora80.qadba")
    [ ] AD.Tables.DefQual_CB.TypeKeys ("<Tab>")
    [ ] AD.Tables.StartTable_CB.SetText ("customers")
    [ ] AD.Tables.StartTable_CB.TypeKeys ("<Tab>")

    When I run this testcase, I get an error that the control is not found, eventhough I was able to record it fine.

    I've attached the .inc file.


    Any ideas on what I'm doing wrong?

    Thanks in advance,

    Manisha Patel


  2. #2
    Junior Member
    Join Date
    Apr 2000
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running a test case for a generic window

    Forgot to add that if I remove the ~Activeapp from the tag and use parent statement, the testcase runs fine.

    Manisha Patel

  3. #3
    Junior Member
    Join Date
    Jun 2000
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running a test case for a generic window

    I feel I have the same problem as yours. I am using SilkTest 5.0.1.

    When a dialog box B, which has "~ActiveApp” in its tag, is called from another dialog box A, which also has "~ActiveApp”, SilkTest cannot recognize the dialog box A.
    If I use a parent statement for the dialog A instead of "~ActiveApp”, SilkTest can recognize the dialog box A correctly.

    For example, there are dialog boxes A1, A2, B1, B2, C.
    A1 and A2 are called from a static parent. Therefore, A1, A2 use a parent statement.
    B1 and B2 are called from either A1 or A2. So, B1, B2 use "~ActiveApp”.
    C is called from either from B1 or B2. Thus, C uses "~ActiveApp”.
    SilkTest can recognize B1 and B2 successfully, but fails to recognize C.

    Unfortunately, I am still looking for a solution …

    Kyoko Bethke

  4. #4
    Junior Member
    Join Date
    Jun 2000
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running a test case for a generic window

    I solved my problem. It was simply my mistake.
    I am using a caption as a tag, and the caption is changed depend on its parent and grand parent. That’s why SilkTest was not able to recognize objects.

    Is caption or windows ID always same in your case?

    Kyoko Bethke

  5. #5
    Junior Member
    Join Date
    Apr 2000
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running a test case for a generic window

    HI,

    Part of my caption remains same. So I'm using wildcards for the remaining part which changes depending from where you get to the window.

    e.g. tag "~ActiveApp/[DialogBox]*Access Definition Editor"

    Manisha Patel
    Princeton Softech Inc.


  6. #6
    Senior Member
    Join Date
    Jul 1999
    Location
    New York, NY, USA
    Posts
    137
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Error running a test case for a generic window

    The wildcard might be your problem. When you use a wildcard at the beginning of a tag you have to be careful that the tag is not so long that it is being truncated at the tail end. This is especialy a problem when using a tag in the windows ID format that returns the URL of the object.

    I think (but am not positive) Silk will also ignore anything after a "-" in a tag based on the window caption, so if the dialog boxes lable is "some text - rest of the text" and you are tagging "* rest of the text" Silk may not ever 'see' the rest of the text.

 

 

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 07:44 PM.

Copyright BetaSoft Inc.