This is a migrated thread and some comments may be shown as answers.

UI Testing Problem in opening the Edit form in grid

3 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
naga
Top achievements
Rank 1
naga asked on 14 Sep 2010, 09:41 AM
Hi,

We are extensively using rad controls in our project. Particularly, Rad Grid. We are simulating your telerik testing tools before we purchase. For Rad Grid Test scenario, the recording need to capture the grid edit form, but when we try to record it throws the exception. But actually the grid application works fine. but telerik testing tools cant able to record the scenario. Pls help to check the scenario from the below mentioned url and reply back.

http://test.aptisys.com/UOMSetup.aspx

Thanks & Regards
Nagarajan.V.R.

3 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 14 Sep 2010, 11:52 AM
Hi Nagarajan,

Could you elaborate what is the exact action that WebUI TestStudio is failing to record? I examined the page in the url you have provided and noticed that the Grid can be edited via a context menu shown with a right click on a row. Is it the click in the menu item that you cannot record?

Looking forward to hearing from you.

Best wishes,
Pavel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
naga
Top achievements
Rank 1
answered on 14 Sep 2010, 12:11 PM
Hi,

http://test.aptisys.com/UOMSetup.aspx

Attached is the screen shoot.  In the above mentioned URL, if i right click in the grid, context menu will appear in the grid with add, edit, updated and delete option. if i click the add from the right click grid context menu, throws the below exception. Displaying the alert box. the string displayed is incorrect format and in the failed test result throws the below exception.

Overall Result: Fail
--------------------------------------------------
'14/9/2010 7:08:14 PM' - 'Pass' : 1. Navigate to : 'http://test.aptisys.com/UOMSetup.aspx'
'14/9/2010 7:08:17 PM' - 'Pass' : 2. RadMenuItem('ContentPlaceHolder1_RadMenu1_detached'): item 'Add' action -> 'Click'
'14/9/2010 7:08:19 PM' - Log: Unexpected dialog encountered. Closing the dialog, and halting execution.
'14/9/2010 7:08:25 PM' - 'Fail' : 3. Click 'ContentPlaceHolder1RadGUOMEditFormControlBtnCancelButton'
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to locate element. Details: Attempting to find [Html] element using
Find logic
 (Html): [id 'Exact' ContentPlaceHolder1_RadGUOM_ctl00_ctl02_ctl04_EditFormControl_btnCancel] AND [tagname 'Exact' input]

Unable to locate element. Search failed!

--------------------------------------------------
'14/9/2010 7:08:25 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'14/9/2010 7:08:26 PM' - Overall Result: Fail

Thanks

0
Pavel
Telerik team
answered on 14 Sep 2010, 12:58 PM
Hello Nagarajan,

I cannot reproduce the error message you receive. It is not clear what may be causing this behavior on your end. You may consider sending us your actual test so we can run it locally and investigate the problem.

As for the actual test failure, it seems that you are trying to click a button before the previous action has finished. Since the loading of the Insert/Edit form takes quite some time, you need to synchronize the next action and ensure it is executed when the button you are trying to click actually exists on the page. You can check the following video which elaborates on this:
http://tv.telerik.com/watch/automated-testing-tools/webui-test-studio-getting-started-recording-best-practices

Sincerely yours,
Pavel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
naga
Top achievements
Rank 1
Answers by
Pavel
Telerik team
naga
Top achievements
Rank 1
Share this question
or