Telerik Forums
Test Studio Forum
3 answers
102 views
Hi 

I am trying to create a coded test step to access a Telerik RadGridView control in my WPF application.

I have added the control into the elements list, but the properties of the element shown by intellisense are different to those of the Telerik RadGridView control (as defined here http://docs.telerik.com/devtools/wpf/api/html/Properties_T_Telerik_Windows_Controls_RadGridView.htm)

e.g. Telerik RadGridView control has a property called Columns, which doesn’t appear to be available within the code step.

Can you explain why this is?

Thanks.
Ivaylo
Telerik team
 answered on 11 Feb 2015
1 answer
67 views
Hello there,

I'm having an issue with element visibility check on Silverlight. My application have an alert popup that i need to check if it appears or not during my tests.
I mapped the element and tried to verify if it exists or not, but Test Studio can't find the element when the popup is closed (and i don't know why). So i'm trying to verify the visibility, but i found an issue:

If i create one step checking if the element is visible and another after checking if the element is collapsed, the test will pass on the first step and fail on the second. Until now this behaviour is correct.
But if i invert the steps (first verifying if the element is collapsed and another checking if he is visible), Test Studio will pass both steps!! So, how can an element be visible and collapsed at the same time??

This is causing me a lot of problems, because my application uses this alert popup on everything. What i must do to solve this?
I'm attaching both the log files and  prints of the result.

Cody
Telerik team
 answered on 10 Feb 2015
1 answer
27 views
I have WPF application that doesn't launch a form on start. The application does have a presence in System Tray and user can interact and open new windows using menu from there.
I've create a new WPF test in Test Studio pointing to the executable of my app. When I press record my application launches (I can see splash screen and icon appears in system tray), but Test Studio just hangs. Any advice? 
Cody
Telerik team
 answered on 10 Feb 2015
1 answer
26 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
92 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
65 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
72 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
48 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
640 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
79 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?