Articles in this section
Category / Section

How do I know that Essential Test Studio (QTP) works as expected?

1 min read

 

When Syncfusion control is recorded, it should be able to record with function provided in the custom server. This could go wrong if the mapping is not right.If the mapping in the dllName tag of the SwfConfig.xml in dat folder does not point to the required dll then the recording would be seen as same as in the sample script below.

VB

 

SwfWindow("GridDataBoundGrid CellTypes").Move 448,525

SwfWindow("GridDataBoundGrid CellTypes").SwfObject("gridDataBoundGrid2").Click 237,82

SwfWindow("GridDataBoundGrid CellTypes").SwfObject("gridDataBoundGrid2").Drag 223,73

In case the mapping points to the wrong version then no scripts would be generated. The right version would be the same version as the AUT developed. For an example if the AUT is developed in 4.201.0.37 then the custom server dlls should also be developed in 4.201.0.37. This is to say TestStudio of 4.201.0.37 is required. With proper versions and proper mapping, the record would be as in the script below.

VB

 

SwfWindow("GridDataBoundGrid CellTypes").SwfObject("gridDataBoundGrid2").SetCurrentCell 1,2

SwfWindow("GridDataBoundGrid CellTypes").SwfObject("gridDataBoundGrid2").SetCellData 1,2,"435.00"

SwfWindow("GridDataBoundGrid CellTypes").SwfObject("gridDataBoundGrid2").SetCurrentCell 2,1

SwfWindow("GridDataBoundGrid CellTypes").SwfObject("gridDataBoundGrid2").SetCellCheckBox 2,1,"ON"

SwfWindow("GridDataBoundGrid CellTypes").SwfObject("gridDataBoundGrid2").SetCurrentCell 3,1

SwfWindow("GridDataBoundGrid CellTypes").SwfObject("gridDataBoundGrid2").SetCellCheckBox 3,1,"OFF"

SetCurrentCell, SetCellData etc in case of the grids. This can be checked in the Recorded functions of Essential TestStudio.chm -> Essential TestStudio -> Supported Controls, the Recorded functions has a list of functions for all supported controls.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied