Telerik Forums
Test Studio Forum
4 answers
248 views
Currently I am maintaining 3 different Test Lists that are are the same except for the enviroment they are meant to test. one is qa, one stage and the final is Prod.  Our URLs vary depending on the enviroment we are trying to access. I have investigated using the BASE URL function when a base URL is entered I get the "/" in my navigation step however when I try to modify the navigation URL for playback my test fails.  I believe this is due to the parameters before the base URL being the one I need to change not the ones after the URL.

Example: 
1. Movies.com is my base URL 
2. I want to hit a page of my site hollywood.movies.com 

The paremeters change before the base.  After watching the video here: http://tv.telerik.com/watch/automated-testing-tools/setting-base-url-in-webui-test-studio  it looks like base URL can only handle parameters after the base.   Has anyone run into this issue before or is there a known workaround that I am not finding.

Most of the sites I test have similar URL structures which will make maintenance of my test plans cumbersome. 


               
Velin Koychev
Telerik team
 answered on 18 May 2013
3 answers
139 views
Hello,

I recently performed a test using Telerik Test Studio, and I came over an exception caught by it. The test executed successfully, but at the end, an Internet Explorer window opened containing an application specific JavaScript error.

This is the error (just as an example):

17:12:27 FATAL - Uncaught error Unable to get property 'read' of undefined or null reference in http://mes-devpc7/RnDSuite/Scripts/Custom/Wizards/Shared/FilterCriteria.js, line 229.
 
I was wondering if this kind of errors can be caught and included in the Telerik test result log, and maybe even determine the test to fail in case such an error is caught.

Edit: There is another functionality that I need to address. The application I am testing displays a loading icon whenever an action is taking some time to load. Is there a way to check how long the loading icon is displayed? Also, is there a possibility to do something like this: "If load-icon visible for more than 10 seconds, fail test"? 

Regards,
Corina Forna

Boyan Boev
Telerik team
 answered on 17 May 2013
4 answers
98 views
Hi,

I'm using the Telerik test studio to create tests for my Silverlight application.
Running into a scenario where I'm unsure how to proceed.

Now - my application has dynamically generated dataforms. Meaning, I've created the data entry forms dynamically using Class properties. To show/hide columns I've used data annotations - [Display(AutogenerateField=True)], I'm reading through each class properties and generating controls like RadMaskedTextBox, checkbox, RadComboBox, RadDateTimePicker (mostly telerik) controls etc.
I have a lot of forms like these. To test these forms, I do not want to create an object for each of these controls in each form in the telerik test application.
Instead I want to dynamically identify the following controls on whichever form i navigate to:
1. Required fields (in my case properties with [Required] attribute on it), whose labels appear in bold
2. Different types of controls like RadDateTimePicker (properties of type datetime/datetime?), Checkbox (properties of type boolean), RadComboBox, RadMaskedTextBox, RadMaskedCurrencyInput, UserControl (customized to display radio buttons, browse control, upload controls)

#1 is on priority since I can get my Add new to work without validation errors.
#2 is necessary for Add/Edit forms and add/modify values in various controls.

Once I can get these controls dynamically in my test application I should be able to fill data into it and perform save operation.

Till now I was able to record my form filling activity in the test application. But this approach creates an object for each control of each form in the project. The project is quite large and I don't wanna end up making n number of objects in my test application. I want to be able to reuse the tests for the forms which are generated dynamically thus reducing application size, time and effort spent to create tests.

Attached find a zip file with 2 sample projects -
1. Sample Silverlight project where i have implemented a part of our project's structure i.e. Dynamically generated 2 forms based on class properties. Used a common view and 2 different view models.
2. Sample Telerik Test Project in which I recorded the actions done on my SL project.
Then I customized each step in code to check what exactly occurred.
As you can see in the sample - A different object was created for each control - the textbox, date time control, combobox etc for each form. Although the controls are actually the same..

I need a way to 1. dynamically load these controls and fill data into it or 2. have only one instance of this control object in my test application and still be able to access it for any form.

Kindly help.
Ivaylo
Telerik team
 answered on 17 May 2013
3 answers
73 views
Hi, I'm working on a Test scenario in Silverlight platform. It contains a User comments text-box field. I'm data driving it from Excel, that part works fine. After pasting the comment, I've created a Nested If-Else verify the text content in the text-box, so that accordingly a check-box has to be clicked.

There are 5 check-boxes, and only one of them has to be checked according to the comment entered in the text-box. But the test is always executing the last Else part in Nested-If...

P.S: I tested the same with a normal dummy HTML page and it is working perfectly fine. Is there any special steps to be applied or taken for Silverlight? What could be wrong, Help me out please. Thanks !
Plamen
Telerik team
 answered on 17 May 2013
3 answers
113 views
Hi,

This seems like a common problem, but watching video's and reading other posts hasn't helped me solve it completely.

1. I want to be able to execute a webtest for 2 baseurl's. (production.xxx.com and stage.xxx.com). I've done this using a baseurl (no problem).

2. I want to be able to execute the same webtest for different projects:
Production.xxx.com/projects/1245/bla.aspx
Production.xxx.com/projects/1248/bla.aspx

(..by replacing a part of the navigateurl (the projectID))

I want to test elements of around 50 pages, per project.
A solution I could think of was also databinding the navigateUrl (/projects/1248/bla.aspx), but that means I have to create 50 records in my datasource for each navigation. So this doesn't seem feasible.

--> I'm an unexperienced scripter, so I'd love some basic scripting knowledge (How to create a navurl based on multiple variables from a datasource).

Do you have a different solution, or can you help me script this?

Kind regards,
Sander van Mourik
Boyan Boev
Telerik team
 answered on 15 May 2013
1 answer
73 views
I was wondering if anyone knew what the icons stood for in the conditional logic statements.

if ... else...
shows up with a dash in between a grey circle.
The test says it passed but does the icon just mean  this has parameters. 
What is the other meaning behind it?

Thanks
Byron
Telerik team
 answered on 14 May 2013
2 answers
98 views
I am trying to locate the parent of the current node using XPath (or any other method).  In my example, the leaf node is easily identifiable, but I am trying to locate the parent "td" node - nothing seems to work:
    ..
    //..
    ../td

The main group of the locator locates the leaf node, then I try to add a child group filter and specify the XPath thinking that the current context will be the node I located above (see attached image).


Any suggestions?

Rodney
Telerik team
 answered on 14 May 2013
23 answers
365 views
Hello,

I am evaluating the Telerik Test Studio, and have found most of it to be easy to use with the exception of the load tests.
The problem I am having is with testing pages that are protected by a standard asp.net forms authentication system.
I have tried recording the load test steps using a fresh login (no pre-existing login cookie), Have tried recording with a remembered login cookie from a previous browser session. And have tried recording a load test by having the login form create a new persistent login cookie.

The result of all methods seem to be troublesome. Eventually all of the methods I have tried end up with the load testing of application pages resulting in a 302 response redirecting them to the login page.

It would seem that there are issues with the logon cookies during a load test.

So, my question is how can I reliably load test application pages which are protected by an asp.net forms authentication page?

Any help would be appreciated.

Thank you.
Cody
Telerik team
 answered on 14 May 2013
3 answers
85 views
I have a scenario in Silverlight platform to click some Radio buttons and loop them for various runs.

Can I Data Drive a If-Else loop with verification from Excel file, such as It has Sex, Marital Status, Children Columns with True/False value. I need Test Studio to check the value in Excel cell before clicking every radio button.

P.S: Coded steps makes me very confused. Please help me achieving the same in Ordinary manner.

Thanks a lot mates.
Boyan Boev
Telerik team
 answered on 14 May 2013
5 answers
69 views
Hi everyone,

I have a test recorded with Telerik Test Studio. The test is to add a new item on RadTreeView Control, this control is editable. Every RadTreeViewItem is a grid with two textboxs. The test have the next steps:
....
- click on button add.
- click in element of radtreeview
- click in textbox of new element.
- write text in textbox
....

In record the test works, if I delete de inserted element by test and execute again the test, it works. But if I execute two times the test, in a second time, the test doesn't work, I can't click in textbox of new element.

if you can't help me I appreciate

thanks
Boyan Boev
Telerik team
 answered on 13 May 2013
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?