SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Dec 2000
    Location
    India
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SIlk recognition of grid control

    We are automating an appln.. which is coded in VB & VC & has 3rd party grid controls..Using DOM as my base for scripting.
    The problem I'm facing is that Silk test 5.5 is not able to recognise these 3rd party controls...Can any one suggest me a way of recognizing these/a workaround for it.
    Thanks..

    ------------------
    btvenkatesh@yahoo.com

  2. #2
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SIlk recognition of grid control

    Which 3rd party grid is in use? Is the Grid and ActiveX control or is it a C++ control?

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  3. #3
    Guest

    Re: SIlk recognition of grid control

    Did you follow the instructions on How to automate VB apps using Silk Test? If yes, you need to provide the details of what you have done.

    If no, do the following...

    1.) Add your VB application EXE to Extension Enabler (pick from Start/Programs/SilkTest/Extension Enabler) and select ActiveX option.
    2.) Do the same inside Silk Test, in Options/Extensions.
    3.) Close Silk, Sil Agent. Close the app, if Open.
    4.) Open Silk, Silk Agent and then the App.

    Right click on agent, pick Extension/Details.
    You should see your app's exe in the first column, ActiveX in second column and Loaded/Enabled in third column.

    Try recording now.


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

  4. #4
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SIlk recognition of grid control

    why would you use DOM on a non-web based application??

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com
    Ryan McCullough
    RightNow Tech. Inc.

  5. #5
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SIlk recognition of grid control

    I see a similar problem quite often with our software. Silk will see table and grid controls in the application but the silktest Table methods will not work on these controls. Any ideas why?

    Here is an example of the tags of one of our grid controls that does not work. I have some that are recognized as being a Table class but Table methods do not work on them.
    This is what a Record->Window Tags gives me.

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com

    [This message has been edited by rmccullough (edited 10-02-2002).]

    [This message has been edited by rmccullough (edited 10-02-2002).]
    Ryan McCullough
    RightNow Tech. Inc.

  6. #6
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SIlk recognition of grid control

    From the tag [MFCGridCtrl] is the native class of the control. It isn't a standard Windows32 API control. The table class is for HTML Table objects and grid controls that SilkTest supports out of the box like PowerBuilder. For this and the myriad of other grid controls out there you have to either use DLL calling, the EK, or develop your own custom API for the object for SilkTest to work with it. It isn't a lot of work, it just takes coordination between QA and development to make it happen.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

    [This message has been edited by jamesso (edited 10-02-2002).]

  7. #7
    Member
    Join Date
    Dec 2000
    Location
    India
    Posts
    44
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SIlk recognition of grid control

    Hi James thanx for the instant reply......i tried all the possible options but still found that Silk recognizes the Grid control as a customwin(without any method)the job i've at hand is that their is text in the Grid cells that i have to extract & put it into a variable for comparison..
    I came to know that there is an option of mapping to the nearestClass in Silk...Could u give me some idea regarding this...
    It's a bit ****** pls....
    thanx in advance

    ------------------
    btvenkatesh@yahoo.com

  8. #8
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SIlk recognition of grid control

    In some cases SilkTest is able to recognize the contents of the Grid, after a click or SetFocus (). You can try grid click to activate one of the cells of the grid and then try recording declarations. If this turns out then you can always use location specific click to activate the grid and then handle it accordingly.

    About ClassMap, SilkTest allows you to map the objects of nonstandard classes to those that SilkTest understands. See if you can map the grid to Table Class. I don't know how comfortable you are with SilkTest, hence I'll list down the steps to do so.

    Start capturing declarations (Record > Window Declarations..)
    Point your mouse to the Window containing the Grid and press "Ctrl+Alt"
    From the declarations displayed in the "Record Window Declarations" dialogbox select the grid control.
    Click the "Class Map" button to invoke the "Class Map" dialogbox.
    In the "Standard Class" combobox select "Table" and click Add.
    And then proceed with the capturing of other declarations.

    Try mapping the Grid to other classes in case it does not map to the Table. Let us know.

    Sorry for being so elaborate.



    ------------------
    never say die
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

 

 

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 12:54 PM.

Copyright BetaSoft Inc.