Telerik Forums
Test Studio Forum
1 answer
42 views
Hi Team,

I am new to Test Studio and wanted to test our Silverlight web application for POC. I have a dropdown list in a page, This list has around 40 items with a checkbox and name. I want to select a checkbox based on the name. Could you please help me in letting know how to code the same so that I search for the item in the list one by one and later select the required one.

If there is any video or steps, request you to kindly share the same.

Thanks,
Manohara.KS 
Cody
Telerik team
 answered on 10 Feb 2015
1 answer
144 views
Hi.
How do you add a reference to an assembly located in the GAC (e.g. System.Windows.Forms).
I have gone into the Settings -> Script Options -> Add Reference screen, and navigate to C:\Windows\Assembly, but it won't let me choose a file.
Thanks.
Ivaylo
Telerik team
 answered on 10 Feb 2015
1 answer
99 views
We're using RadGridView and the 2nd column contains a button labeled Edit (on all rows).

In a test I need to click the button in the first row in different steps - but I'm getting inconsistent results.

When I highlight the link in Test Studio and go the Element and Edit in Live - it highlights the correct control (see attached screenshot).

IN our test, the If statement (which allows me to specify row 1, column 2) works all the time and the first click on line 3 always works fine, but sometimes the click on line 7 fails and sometimes the click on line 11 fails.  The click on line 16 never seems to fail (when we get that far) and the click on line 19 always seems to fail. (see snippet below)

All the click lines after 3 were copy and paste, then I did an Edit in Live, navigated to the control set the title and tagindex and selected all instances where control was called-out in the test.  This alternate method did not make a difference.

How can I make the click on the first button in the grid consistent?


(snippet from code with line numbers for reference)
 1. IF (RadGridDataCell('ctl00_contentPlaceHolderMain_detailView_gridView_radListItems_ctl00__0'): cell [1,2] text 'Contains' '!AT Test Survey'.)
 2.   Comment: survey record is there - edit it
 3.   Click 'ContentPlaceHolderMainDetailViewGridViewRadListItemsLbtEditItemLink'
 4.   Tab('ctl00_contentPlaceHolderMain_detailView_editView_radTabStrip'): 'Survey Rounds' click action.
 5.   Check 'ContentPlaceHolderMainDetailViewEditViewCtrUserControl2CtrlSurveyRoundsRblSetRounds1Radio' to be 'True'
 6.   Enter text '3' in 'ContentPlaceHolderMainDetailViewEditViewCtrUserControl2CtrlSurveyRoundsTbMaxRoundText'
 7.   Comment: save at this point because the test runner does not handle clicking out of the field as an action item
 8.   Click 'ContentPlaceHolderMainDetailViewCmdButtonsRptCommandButtonBtnCommandButtonSubmit'
 9.   Verify 'TextContent' 'Contains' 'Record saved successfully.' on 'ContentPlaceHolderMainDetailViewLblMessageSpan'
10.   Comment: re-edit the record - now the input fields will exist
11.   Click 'ContentPlaceHolderMainDetailViewGridViewRadListItemsLbtEditItemLink'
12.   Tab('ctl00_contentPlaceHolderMain_detailView_editView_radTabStrip'): 'Survey Rounds' click action.
13.   Enter text '12:00 AM' in 'ContentPlaceHolderMainDetailViewEditViewCtrUserControl2CtrlSurveyRoundsTimepicker1DateInputText'
14.   Enter text '12:00 PM' in 'ContentPlaceHolderMainDetailViewEditViewCtrUserControl2CtrlSurveyRoundsTimepicker3DateInputText'
15.   Comment: save again - we'll come back to verify
16.   Click 'ContentPlaceHolderMainDetailViewCmdButtonsRptCommandButtonBtnCommandButtonSubmit'
17.   Verify 'TextContent' 'Contains' 'Record saved successfully.' on 'ContentPlaceHolderMainDetailViewLblMessageSpan'
18.   Comment: go back in to verify the record really saved
19.   Click 'ContentPlaceHolderMainDetailViewGridViewRadListItemsLbtEditItemLink'
20.   Tab('ctl00_contentPlaceHolderMain_detailView_editView_radTabStrip'): 'Survey Rounds' click action.
21.   RadInput('ctl00_contentPlaceHolderMain_detailView_editView_ctrUserControl_2_ctrlSurveyRounds__timepicker1_dateInput_wrapper'): value 'Exact' '12:00 AM'.
22.   RadInput('ctl00_contentPlaceHolderMain_detailView_editView_ctrUserControl_2_ctrlSurveyRounds__timepicker2_dateInput_wrapper'): input is 'Empty'.
23.   RadInput('ctl00_contentPlaceHolderMain_detailView_editView_ctrUserControl_2_ctrlSurveyRounds__timepicker3_dateInput_wrapper'): value 'Exact' '12:00 PM'.
24. ELSE

Ivaylo
Telerik team
 answered on 09 Feb 2015
5 answers
110 views
I tried using the coded step below but it fails to compile

HTMLFindExpression expr=new HtmlFindExpression("id=~ScheduledAssetIds","|","class=~arrow");
Element sel=Find.ByExpression(expr);
Manager.ActiveBrowser.Actions.(sel);

Is something that needs to be done before I can perform the action or just can't be done with this way?

My goal is to make a script that can run on the same element on different webpages. Is there a better way to do this?
Boyan Boev
Telerik team
 answered on 09 Feb 2015
3 answers
72 views
Hi,

I am in my appclication and want to record the "back" button in the browser (not in application). how do I do that?
Boyan Boev
Telerik team
 answered on 09 Feb 2015
45 answers
757 views
Hi,

I recently upgraded from your custom build (1527) to (2013.1.806) and when i am trying to run the lists. They doesn't run.
Here is the video of it. http://screencast.com/t/jEpFuQmo

I have also attached the log file and the list along with the associated test.

Regards,
Kiran
Ivaylo
Telerik team
 answered on 06 Feb 2015
1 answer
107 views
I am trying to have a recorded test test click on an item in a RadTreeView list on a HTML webpage, in this case called "2. All Reservations".  But, the item title/name may not always contain the number "2." and may not be at the same index in the list, so I was hoping to find it and click it by the name "All Reservations". Here's more information below.

When I record the event in Test Studio, get the following entry (I replaced part of the navigation link with [some_code]):
RadTreeView('ctl00_ctrlMenu1_Menu'): '2. All Reservations ' action -> 'Navigate' to '/NewFormView.aspx?[some_code]'

Viewing the properties of the RadTreeNode, the html code is the following:
<div class="rtMid rtSelected rtHover">
<span class="rtSp"></span><a title="2. All Reservations" class="rtIn" href="NewFormView.aspx?[some_code]" target="_parent">2. All Reservations                     </a>
</div>

Editing the step in code, I receive the following (I replaced part of the navigation link with [some_code]):
'RadTreeView('ctl00_ctrlMenu1_Menu'): '2. All Reservations ' action -> 'Navigate' to 'NewFormView.aspx?[some_code]'
Pages.Home.CtrlMenu1MenuDiv.NavigateNodeByText("2. All Reservations ")

Is there a way for me to find the item by some sort of "text contains",  or is there another way of finding that element in a repeatable way?

Thanks,
Tim
Boyan Boev
Telerik team
 answered on 05 Feb 2015
1 answer
86 views
Hi,

I can not find anything about the browser Opera. We have to support Opera since we are a norwgian company  :-)

Is it supported by Test Studio? If so, how to get it to work?

If not, are there any plans for it to be included?

Haavard Gulbrandsen
​
Cody
Telerik team
 answered on 05 Feb 2015
1 answer
80 views
Hi, We are evaluating test studio and would like to test the execution of a test list remotely via execution server, but we get an error "Scheduling server cannot reach Storage service". I believe when we installed the Test Studio Ultimate Trial (2014.4), we did not get the option to configure execution or storage server.

Question is, does Trial version have such an option?

Thanks
Cody
Telerik team
 answered on 04 Feb 2015
8 answers
277 views
 Hello,
Can I convert the entire recorded test-case steps to C# code.

( I am not looking for the single step view, but for entire test to be in c# code).
Cody
Telerik team
 answered on 02 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?