Telerik Forums
Test Studio Forum
1 answer
155 views

I'm trying to click the check box with record and playback, on play back the system is not invoked.  I'm trying to have it do a real mouse click, any ideas?  I would like the option to select by Text of the check and the item number.

Telerik.WebAii.Controls.Html.RadListBox listBox = ActiveBrowser.Find.ById<Telerik.WebAii.Controls.Html.RadListBox>("ctl00_cphTracerPage_rcmbTracersTemplate");

            foreach (Telerik.WebAii.Controls.Html.RadListBoxItem lbItem  in listBox.Items)

            {

                bItem.ScrollToVisible();

                lbItem.Click();

                lbItem.Select();

                Log.WriteLine("List Item: " + lbItem.ToString());

            }


<div class="RadListBox RadListBox_Office2010Blue RadListBoxScrollable" id="ctl00_cphTracerPage_rcmbTracersTemplate" style="width: 300px; height: 400px;">
<div class="rlbGroup rlbGroupRight">
<ul class="rlbList">
<li class="rlbItem rlbHovered" id="ctl00_cphTracerPage_rcmbTracersTemplate_i0">
<input class="rlbCheck" type="checkbox">
<span class="rlbText">JCR - CT Scan</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i1">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Emergency Management</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i2">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Endoscopy</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i3">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Environment of Care</span>
</li><li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i4">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - EOC Rounds</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i5">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Equipment Cleaning and Low Level Disinfection</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i6">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Human Resources</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i7">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Infection Prevention and Control</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i8">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Infection Prevention/Isolation</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i9">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Information Management</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i10">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Information System-2nd Generation</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i11">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Inpatient Generic Tracer</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i12">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Labor and Delivery</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i13">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Leadership</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i14">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Life Safety</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i15">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Medical Staff</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i16">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Medication Management_v2</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i17">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - MRI</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i18">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - National Patient Safety Goals_v2</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i19">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Nursing_v2</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i20">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Outpatient Clinic</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i21">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Pain Assessment-Reassessment</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i22">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Pain Management</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i23">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Patient Flow</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i24">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Performance Improvement</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i25">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Phlebotomy Observation</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i26">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Provision of Care_v2</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i27">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Radiology</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i28">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Record of Care</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i29">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Rights and Responsibilities of Individuals</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i30">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Surgical Patient</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i31">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Tissue Management</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i32">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Transplant Safety</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i33">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Ultrasound</span></li>
<li class="rlbItem" id="ctl00_cphTracerPage_rcmbTracersTemplate_i34">
<input class="rlbCheck" type="checkbox"><span class="rlbText">JCR - Waived Testing</span></li>
</ul></div>
<input name="ctl00_cphTracerPage_rcmbTracersTemplate_ClientState" id="ctl00_cphTracerPage_rcmbTracersTemplate_ClientState" type="hidden" value='{"isEnabled":true,"logEntries":[],"selectedIndices":[],"checkedIndices":[],"scrollPosition":0}' autocomplete="off">
</div>
 
             
Plamen
Telerik team
 answered on 30 May 2013
1 answer
68 views
Hi,

We want to have a test which logs into our silverlight app (Step 1) and then performs a number of other steps ( Step 2-20).

We want step 1 to occur once and then steps 2-20 to repeat for every row in our test data?

The scenario would play out that a user logs in once and then say adds many records according to our test data.

Is this possible; any pointers?

Jason
Velin Koychev
Telerik team
 answered on 30 May 2013
2 answers
100 views
I am using nested tests and I am trying to do an extraction of a value in a sub test and use the extracted value in the calling test. I have even tried using the get and setextractedvalue methods in a coded step. What can I do to accomplish this task?
Michael
Top achievements
Rank 1
 answered on 30 May 2013
2 answers
72 views
Hi everybody,

I was do a test in Test studio and i found a problem that i can't solve, how can i insert a decimal number in a numericbox on the code behind?

thanks for help

José Teles
Boyan Boev
Telerik team
 answered on 28 May 2013
1 answer
120 views
Hi Everyone,

I'm using the free Telerik framework, version 2011_1_502. We currently use IE 8 for our tests and I'm trying to run tests on IE 9. Ideally we would like to keep using the same framework version on IE 9; we have a vast amount of tests, and upgrading the framework would entail converting the code and testing all tests on both browsers, which would take a very long time.

The issue I currenty face is handling the download dialog on IE 9. I'm able to save a file, but it goes to the default directory (doesn't do Save As).

Here is what we use for IE 8 (doesn't work on IE 9):

manager.DialogMonitor.AddDialog(ieDownloadDialog);
manager.DialogMonitor.AddDialog(saveas);
manager.DialogMonitor.AddDialog(ieDownloadCompleteDialog);
manager.DialogMonitor.Start();
  
button.Click();
  
ieDownloadDialog.WaitUntilHandled(CurrentEnvironment.LargeTimeOut);
saveas.WaitUntilHandled(CurrentEnvironment.LargeTimeOut);
//ieDownloadCompleteDialog.WaitUntilHandled(CurrentEnvironment.TimeOut);
  
manager.DialogMonitor.RemoveDialog(ieDownloadDialog);
manager.DialogMonitor.RemoveDialog(saveas);
manager.DialogMonitor.RemoveDialog(ieDownloadCompleteDialog);
manager.DialogMonitor.Stop();
I also tried the following and it doesn't work:

 

var handler = new DownloadDialogsHandler(activeBrowser, DialogButton.SAVE, path, desktop);

The following is what saves file, but it doesn't specifiy the location given on the variable path, it just saves to the default directory and default filename:
 

button.Download(false, DownloadOption.Save, path, 60000);

Can anyone help with this? Thanks in advance.

Plamen
Telerik team
 answered on 27 May 2013
1 answer
55 views
I have a testlist which contains 15 - 20 test cases. once the execution of testlist is done telerik test studio is throwing an error message " unable to load the results....."

Please let me know why am i getting the above error
Plamen
Telerik team
 answered on 27 May 2013
3 answers
177 views
Hi... I've a scenario of simple form filling of two text fields and submitting. I'm data driving the test via an Excel Sheet.

Here is a sample of my Excel data.

1 Fruit Apple
2 Fruit Orange
Object Chair
4 Object Desk

It is obvious that the sheet have some repeated entries in a column. Since my form remembers the last iteration values used, I don't want Test Studio to erase the text field and type the same again. It is consuming more time.

Is there any way to create a check/verify step (Either GUI or coded), such as Test Studio should skip the cell value if it is same as previous. (No skipping the whole iteration, just leaving out the cell value). Help me out in this, I'm ready to explain more, Thanks !

Note: I'm working on Silverlight platform.
Plamen
Telerik team
 answered on 27 May 2013
1 answer
76 views
Hello Telerik,

Could you let us know which is the earliest version of Test Studio that supports running of tests in BOTH IE10 and Chrome? I realize that the latest version will support both browsers - but we would like this information just in case the latest version doesn't work for us (based on our experience when we have tried to upgrade in the past).

Also, is there anything we should know (things we should do, known issues, etc) when migrating existing tests and/or authoring new tests in order to run in those browsers?  If this is documented somewhere, please point us to it.

Thanks,
Shashi
Ivaylo
Telerik team
 answered on 27 May 2013
1 answer
102 views
Greetings Once Again,

I have a test which is creating data in an environment off a spreadsheet. I want it to always create something successfully, but report to me if an error occurs. I will then report this error to the appropriate people who will fix, then publish the data. If I fail to create the data, it will not save other pieces, causing time consuming fixes, so I put the verification into an IF statement. Therefore, ELSE is synonymous with failure, but it then handles the failure and forges ahead without messing up the remainder of the item creation.

Of course, when it hits this ELSE, all the steps pass which normally would cause it to PASS and, amid 300 data entries, I'd be none-the-wiser. To combat this, I have a bogus verification setup with continue on failure so that the step marks fail. I was wondering if I was missing a feature that was a bit more... graceful.

Alas... in a perfect world, nobody would enter data incorrectly on the spreadsheet! 

Sincerely,
Robert
Plamen
Telerik team
 answered on 27 May 2013
3 answers
75 views
I am getting an error

Only one recorder windows is supported per-process.
No recorder will be attached to new document.


This issue was occurred earlier but resolved automatically after restart

I tried following, But no result
1. Run the Visual studio as Admin Mode
2. Un install and re install the Test studio
3, Configuration of IE settings with Test studio recommendations
4. Restarted windows


Any help Please
Boyan Boev
Telerik team
 answered on 24 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?