Skip to content

Replies

0
Rafael
Rafael answered on Jul 29, 2009 9:27 PM

I have not pursued this any more. We decided to limit how much to test from the third party objects and concentrate on validating that the application use of it works. In my case the cell is read/write, so I am just using the SetCellData xxx as a way to test that the value will be loaded in to the cell.

0
Rafael
Rafael answered on Jun 3, 2009 3:28 PM

Alan,

 Thanks for the clarification and the hint on using Click x, y.

I am still concern that using ".SetCellData "123" to "select" that value from the list might mask an issue with access to the list. This is because it might simply enter the indicated value as a new value anyway. When we use, for example “If value = …SwfTable("…").GetCellData(row, col)" in .NET the test will only pass if the value at that cell is selected because you are not providing it in the statement.

 It would be great if a “.GetCellData” method was available for Infragistics dropdown object in the SwfTable.

I will try the .Click x,y method.

Thanks for your help

Rafael.

0
Rafael
Rafael answered on May 29, 2009 11:17 PM

Alan,

 

In this particular case I can’t use SetCellData because I need to select a value rather than enter one. In our particular functionality requirements for this application, a user must be able to:

  1. See all the current values (done with following example:
    1. GetNAProperty("DisplayLayout.Bands[0].Columns[Department].ValueList.ValueListItems[" & i & "].DataValue")

 

  1. Type in a valid value not found in the list. Done with following example:
    1.  SwfTable("ugFuseStrings").SetCellData "0","DisplayModeSetting","2.22"

 

  1. Select a current value from the list.  No idea how to do this.

 

When I use Record in QTP 9.2 for the action of selecting a value by clicking on it, the code comes out using SetCellData so this is not what I need (example below):

SwfTable("ugFuseStrings").SetCellData "0","DisplayModeSetting","4.444"

 

 

I need help on how to do #3 above.