SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Jul 2001
    Location
    Glasgow, Scotland
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SilkTest recognising wrong window for record

    This is probably very easy but ...

    I have recorded declarations up front for all of the windows I will be using. When I then try to record App States, SilkTest gives me the wrong declaration for the window I am looking at, and instead uses one of the other declarations. This means that when I record actions, SilkTest says that it couldn't work out which window was being used. How can I tell SilkTest which window declaration it should be using at record time, and will this cause a problem when I play back the app state?

    Cheers,

    Mark.

  2. #2
    Junior Member
    Join Date
    Jul 2001
    Location
    Glasgow, Scotland
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest recognising wrong window for record

    I guess I should add (having read some more articles) that I am using Delphi 5.

    Please tell me this ain't gonna matter ......

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

  3. #3
    Junior Member
    Join Date
    Jul 2001
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest recognising wrong window for record

    Need more info. Any one of a number of things might be going on here. It could be a problem with the tags for various windows being the same, so SilkTest picks the first one that matches, or it could be that your include files aren't being read in and compiled before you do your recording. Can you give some examples?

    Lisa
    If it wasn't for disappointments
    I wouldn't have any appointments.
    -- They Might Be Giants

  4. #4
    Junior Member
    Join Date
    Jul 2001
    Location
    Glasgow, Scotland
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest recognising wrong window for record

    Here are the two window decs that are being confused ...

    [-] window MainWin EntityDatagroupEdit
    [-] multitag "Entity Datagroup Edit"
    [ ] "$C:\Test\App\DT\ADT.exe[1]"
    [+] Menu Menu1
    [ ] tag "#1"
    [+] MenuItem MenuItem1

    blah blah blah ... and ...

    [-] window MainWin EntityForeignEdit
    [-] multitag "Entity Foreign Edit"
    [ ] "$C:\Test\App\DT\ADT.exe[1]"
    [+] Menu Menu1
    [ ] tag "#1"
    [+] MenuItem MenuItem1

    The pages are different but derived from the same class.

    Page 1 works OK, and is closed when finished.
    Other pages are then opened and closed successfully, but when Page 2 is opened, it shows as using the declaration for Page 1.

    Confused? I am .....



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

  5. #5
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest recognising wrong window for record

    If either of your windows can be identified by the tag "$C:\Test\App\DT\ADT.exe[1]", then you can't use it to identify either one of them individually. You do have different captions though; I would just go with the tags "Entity Datagroup Edit" and "Entity Foreign Edit" by themselves; you shouldn't get the same problem again.

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

  6. #6
    Junior Member
    Join Date
    Jul 2001
    Location
    Glasgow, Scotland
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest recognising wrong window for record

    I might be doing this wrong, but I have removed the multitag so the windows declaration uses just

    tag "Windows Caption"

    for each page, however now SilkTest can't find page 1. It works OK upto there even though I have removed the multitag for all pages (it was the same for all pages), but fails when it tries to find page 1. If I add the multitag back in for one of the pages I get the same problem as before.

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

  7. #7
    Member
    Join Date
    Jun 2001
    Location
    Berkeley, CA, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest recognising wrong window for record

    I believe application states use the variable 'const wMainWindow' to determine what the main window should be.

    Check to see what that variable is set to inside of your test frame. I would bet it's pointing to the main window Silk is able to see.

    You will probably have to combine the two main windows into one declaration. Give the new main window a tag of "Entity*"

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

 

 

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

Copyright BetaSoft Inc.