Hi,
I am working on .Net Window Application Automation by Using UFT11.53 + TestAdvanatge10.2
There is Scenarios inside swftable, Combobox exist and Combobox having multi select Checkbox’s.
Problem is I am not able to Check the checkbox ( I can able to select the checkbox values but while saving selected values are getting refreshing since Checkbox is not checked).
So, Please suggest me how to check a checkbox which is inside dropdown?
Hello ,
Are you able to do this manually without using QTP ? Does everything with your AUT works as expected ? Have you tried to record and replay this action, what script you’ve got and does replaying of the test replay everything properly ?
I am waiting for your feedback.
Yes able to do manually without using QTP and its works as expected.
I tried by record and replay, but it doesn't worked.
As i mentioned its set the data but while saving data gets refreshing, since checkbox is not checked.
Below is the script generated while in record mode.
SwfWindow("from1").SwfTable("table1").ActivateRow "0"SwfWindow("from1").SwfTable("table1").ActivateCell "0","Indi"SwfWindow("from1").SwfTable("table1").SetCellData "0","Indi","Unspecified"
Please let me know, if any more information required from my side?
Thanks,
Guru
Hello,
Everything with the code seems to be fine, you are selecting only item “Unspecified” from your multi-select combo in column “Indi”. And from your response it seems that the code actually does what is expected to do, it sets needed value to the particular cell. While you’ve been recording the test does the changes were saved ?
So as far as I understand the issue is that the application doesn’t save this back to the underlying data source, you could try to leave the cell in order to perform the grid to commits the changes back to the underlying data record and then to perform clicking of your save button . However if the issue is with saving of the changes back to the underlying data source, there is no sense it to be caused by the TA and QTP and the issue should be searched in the application.
I hope that this will helps you.
Yes, Changes are saved while recording the test.
As i said earlier, Cell having a list of values and from list of values user can select multiple values by checking check box's.
And, as i understand "SetCellData" method is sets the data into cell and its works fine if list does not have Check box values.
In order to save data check-box should be checked from list.
And, i feel there are no issues with either Application, TA or QTP.
But, Just need a help how we can automate like this scenario ( i felt need a mouse click to check a check-box from cell list).
Awaiting Your Response.
Thanking You!!
In order to understand better your issue, which seems comes from the architecture of your application, is it possible to provide me simple example (I need Visual Studio solution sample), which demonstrate the architecture of your AUT and I will be able to test on my side. About cell click inside a UltraGrid dropdownEditor, you should use Click methods of the form with the exact coordinates, in order to be easy to localize those coordinates is suggest you to switch from “Default” to “Low-level recording” options, I’ve captured small video in order to demonstrate you how you could do this with UFT.