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.
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.
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.
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.
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
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.