SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Apr 2002
    Location
    fremont, CA, USA
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to work with working with two similar windows ?

    Hi,
    Can some one please help me in solving this problem.
    I have two "ACTION" dialogs in my application under test. Both ACTION dialogs have the same title as "ACTION". The first one has two buttons namely OK and CANCEL and the next one has only one button namely CLOSE. The texts are different in both windows as can be seen in the window declarations I pasted below:-
    If I declare these two windows in the include file in two separate windows declarations, silk test is not allowing me to proceed ( error:-ACTION already declared in line...")
    If I include only the window declaration for the first dialog, then silk test gives me a different error when I run the test and exits when it calls the second ACTION dialog ( probably it is not recognizing the second ACTION dialog since it has a different text and buttons)

    Please help me with your valuable suggestions

    Thanks in advace:-

    The windows declarations looks like:-
    ( the second one is commented, since I tried to run the test after commenting it )

    [-] window JavaDialogBox ACTION
    [ ] tag "ACTION"
    [ ] parent N1TOPSHELFCONSOLE
    [+] JavaJFCStaticText AC1T13Text
    [ ] tag "AC1T-13"
    [+] JavaJFCStaticText EntityText
    [ ] tag "entity"
    [+] JavaJFCStaticText ActionText
    [ ] tag "action"
    [+] JavaJFCPushButton Cancel
    [ ] tag "cancel"
    [+] JavaJFCPushButton Ok
    [ ] tag "ok"
    [+] JavaJFCStaticText CREATEText
    [ ] tag "CREATE"
    [+] JavaJFCStaticText N1TOPText
    [ ] tag "N1TOP"
    [+] JavaJFCStaticText ElementText
    [ ] tag "element"
    [-] JavaJFCStaticText COMPLETEText
    [ ] tag "COMPLETE"
    [ ]
    [-] //window JavaDialogBox ACTION
    [ ] //tag "ACTION"
    [ ] //parent N1TOPSHELFCONSOLE
    [-] //JavaJFCStaticText AC1T13Text
    [ ] //tag "AC1T-13"
    [-] //JavaJFCStaticText EntityText
    [ ] //tag "entity"
    [-] //JavaJFCStaticText ActionText
    [ ] //tag "action"
    [-] //JavaJFCPushButton Close
    [ ] //tag "close"
    [-] //JavaJFCStaticText CREATEText
    [ ] //tag "CREATE"
    [-] //JavaJFCStaticText N1TOPText
    [ ] //tag "N1TOP"
    [-] //JavaJFCStaticText ElementText
    [ ] //tag "element"
    [-] //JavaJFCStaticText StatusText
    [ ] //tag "status"
    [-] //JavaJFCStaticText COMPLETEText
    [ ] //tag "COMPLETE""

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

  2. #2
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to work with working with two similar windows ?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by sbabuts:
    If I include only the window declaration for the first dialog, then silk test gives me a different error when I run the test and exits when it calls the second ACTION dialog ( probably it is not recognizing the second ACTION dialog since it has a different text and buttons)
    <HR></BLOCKQUOTE>

    That shouldn't be your problem. Silk uses the tag and the parent to recognize windows. It should recognize the dialog. I'd like to see the error message if you have it.

    What you can do is have 1 declaration for this dialog that contains a superset of all the child objects in the 2 dialogs. So just add a Close pushbutton to the declaration with the OK & Cancel buttons. If you need any of the text objects add those too.

    If you do end up using 2 seperate tags you may want to make them unique. You can do this by referring to a unique child object in the tag.

    something like this...

    DialogBox Foo
    tag "[DialogBox]Foo/[StaticText]Foo You/.."



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

  3. #3
    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: how to work with working with two similar windows ?

    Just name one of the dialog boxes differently. You can do something as simple as ACTION and ACTION2 of you like.


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

  4. #4
    Junior Member
    Join Date
    Apr 2002
    Location
    fremont, CA, USA
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to work with working with two similar windows ?

    DJGray and BrianCarroll, Thanks to both of you.
    It worked!.
    I recorded the two "ACTION" windows with different captions, say ACTION1 and ACTION2. I found this changed the tag, although the window declarations still had the same name=ACTION(which was on the Title bar of both windows).

    Shile runnning the test, the above set up still gave me a problem. Then I had to manually edit the names to ACTION1 and ACTION2 and it worked fine.

    Thanks for your help



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

  5. #5
    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: how to work with working with two similar windows ?

    Glad to hear that you got your tests working!
    Your better solution, I think, though is to follow Brian's advice about having only 1 declaration for your ACTION windows. In case your developers decide to add more dialogs with that same caption in the future, maintenance for you will be easier.


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

 

 

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:29 AM.

Copyright BetaSoft Inc.