Telerik Forums
Test Studio Forum
2 answers
139 views
Hello,

I have a silverlight screen which has textboxes, comboboxes, grids, labels, etc. After performing a particular text, i need to validate if the testcase is a success. For example, after filling up a form in silverlight, it will show the content on a label in the same page. How do i read the content of this label? and how do i validate in other components like combobox, grid, etc????

Thanks,
Jinesh
Missing User
 answered on 25 May 2010
1 answer
127 views

I am getting an error "Unhandled exception thrown during automation step execution". When I recorded the script,
one of the steps is clicking on a radio control. When I run the script, it is trying to set a button to true and failing.
When I use the Locate in DOM tool, and hover over the Radio Control, it locates the button instead of the Radio Control. I attached a screenshot of the area in the page. I am clicking on the radio labled "Depot Print Label" and the playback is trying to set the button labled as "Find Postcode" to true

 This is what was in the test log:

Overall Result: Fail
--------------------------------------------------
'5/25/2010 5:54:52 AM' - 'Pass' : 1. Navigate to : 'https://superuser-uat1.tester.loopone.com/'
'5/25/2010 5:54:53 AM' - 'Pass' : 2. Keyboard (KeyPress) - Tab (1 times) on 'UsernameText'
'5/25/2010 5:54:53 AM' - 'Pass' : 3. Set 'UsernameText' text to 'xxxxxx'
'5/25/2010 5:54:53 AM' - 'Pass' : 4. Set 'LoginPasswordPassword' text to 'xxxxxxxx'
'5/25/2010 5:54:56 AM' - 'Pass' : 5. Keyboard (KeyPress) - Enter (1 times) on 'LoginPasswordPassword'
'5/25/2010 5:54:57 AM' - 'Pass' : 6. Check 'PsushShipmentTypeContractRadio' to be 'True'
'5/25/2010 5:54:57 AM' - 'Pass' : 7. Set 'ValidationNumText' text to 'r998877'
'5/25/2010 5:54:59 AM' - 'Pass' : 8. Click 'ValidateContractNumButton'
'5/25/2010 5:54:59 AM' - 'Pass' : 9. Connect to pop-up window : 'https://superuser-uat1.tester.loopone.com/ship_su_contract_validation.epl?lookup=r998877'
'5/25/2010 5:54:59 AM' - 'Pass' : 10. Click 'SubmitBtnButtonTag'
'5/25/2010 5:55:00 AM' - 'Pass' : 11. Close pop-up window : 'https://superuser-uat1.tester.loopone.com/ship_su_contract_validation.epl?lookup=r998877'
'5/25/2010 5:55:01 AM' - 'Pass' : 12. Set 'PsushCallerNameText' text to 'test'
'5/25/2010 5:55:01 AM' - 'Pass' : 13. Set 'PsushCallerPhoneText' text to '1234'
'5/25/2010 5:55:01 AM' - 'Fail' : 14. Check 'ToFindPostcodeButton' to be 'True'
--------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unhandled exception thrown during automation step execution
InnerException:
System.ArgumentException: Invalid input type 'Button' for this control. Control was expecting 'Radio'
   at ArtOfTest.WebAii.Controls.Control.CreateInstance[TControl](Element e, Boolean throwIfNull)
   at ArtOfTest.WebAii.ObjectModel.Element.As[TControl]()
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.CheckActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
--------------------------------------------------
'5/25/2010 5:55:01 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
--------------------------------------------------
'5/25/2010 5:55:02 AM' - Overall Result: Fail
--------------------------------------------------

 

Konstantin Petkov
Telerik team
 answered on 25 May 2010
0 answers
119 views
Hi sir/Madam,

        I have ask you about RadProgressArea control for telerik, I try your sample demo trial a RadProgressArea control i noticed  the RadProgressArea cannot control the button. My question during a page load ispostback the button i initializeds RadProgressArea in condition If(!ispost back){ by RadProgressArea.visible=false}.  And RadProgressArea.Visibble=true is initialized in the button_click event for the RadProgressArea.visible=truel. It is possible we can hide the radProgressArea in the page is postback an after clicking the button_event such a time to display the RadProgressArea.visible=true.




                                                                                                                                              Regards,
                                                                                                                                              --Garry--
n/a
Top achievements
Rank 1
 asked on 25 May 2010
3 answers
124 views
I have an issue with some drag and drop functionality in our Silverlight application.

The problem is that we have an actions menu that appears when you drag an object onto the apps desktop area and hover there (without releasing the mouse).  Then, with the mouse button still held down, you need to drag onto the actions menu and release it on the desired option.  I've attached an image to help explain this situation.

WebUI will not recognise this menu at all and it's impossible to access it in the DOM because I need to have the mouse button held down to show it so I can't access WebUI's features and have this menu displayed.

When using the record functionality and performing this action the step looks as follows:

Drag PARTObjectNameTextblock to application at (234,326) from TopLeftCorner

When played back this doesn't perform the correct functionality, rather it just drops it directly on the desktop.

Is there anything that WebUI can do to get around this issue?  I'm currently in my trial at the moment and I'm using the build 2010.1.4.29.  If this can be solved it would go a long way in proving that this tool is the right one for our company.
Cody
Telerik team
 answered on 24 May 2010
5 answers
133 views

Hi

I am trying to count number of columns and column values from a table but everytime I am getting wrong values.

Please check below for the Object Property:

Object Property

<table rules="all" cellspacing="0" cellpadding="3" border="1" style="border-collapse: collapse;" columncount="10" expandedclientidsname="HierarGrid_ExpandedIDs_ResultsGrid_ctl06" class="Datagrid">

Code:
Dim t As HtmlTable = myManager.ActiveBrowser.Find.ByExpression(Of HtmlTable)("class=Datagrid")

 

 

Dim Rowcounts As Integer = t.Rows.Count              

 

 

Dim ColumnCount As Integer = t.ColumnCount()

 

 

Row Count is working properly but Column Count is not working properly.

I am using above code to find the number of columns but instead of returning 10 it is returning 2. So please tell me the solution.
Do let me know if I am doing anything wrong.         

Missing User
 answered on 21 May 2010
1 answer
80 views
What is the best way to do this?

I could type Control A then hit backspace then type.


I was wondering if there is a better way?
Cody
Telerik team
 answered on 21 May 2010
1 answer
201 views

I find WebUI test studio is a great tool to test Silverlight. I have the following question.

When I record the Silverlight apps, generate c# and run the test case, test cases will open IE, simulate users to use the mouse to click the website.    It means I can’t use my mouse to do anything until the test cases finish running.
 
I know I can find another machine to run my tests.  I know VSTS 2010 web tests (coded web tests)  just run the tests without opening the browser.  Can we just run the tests without opening the browser and  without letting the  mouse move automatically?  Because if control the mouse, the tests can't move on. :)

 Thanks,

Ray

Cody
Telerik team
 answered on 21 May 2010
4 answers
105 views
I'm facing a weird problem here. I need to separate the common steps in the testcases and create a method in a new class. But it doesnt work.
For example, I have recorded 6 screens and the way to reach all the six screens are common. Only the core part of the screen differs. In this case there is so much of  duplicate code and I'm trying to remove that. I copied the common steps to a function in a new class and called that function from the testcase. It doesnt work at all. The common class inherits the same classes as done by the test cases. There is no compilation error or warning. But it just doesnt call them. It makes the function look insignificant.

Kindly help me get through with this issue. I'm not able to figure out if this is a problem with the tool or c# itself. Thanks in advance for the reply.
Missing User
 answered on 20 May 2010
6 answers
228 views
I keep getting An Error Has Occurred when installing WebUI QA Edition. Then it backs out the install with no other explanation. Only a warning in Application log "Product: Telerik WebUI Test Studio 2010.1 -- Installation failed." I am trying to install on Windows XP Professional Version 2002 SP 3 with 1 GB of RAM
Cody
Telerik team
 answered on 19 May 2010
3 answers
200 views
I've recorded a scenario and it was working fine. But now, the application has undergone some changes and its a pretty slow. So the testcase fails all the time. Is there any way to control the speed of execution of the scenarions in Telerik? As of now, I'm adding Sleep in between, but its not the right way. I dont want my testcase to undergo changes frequently.

Please suggest me a good way to do this.
Cody
Telerik team
 answered on 18 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?