Telerik Forums
Test Studio Forum
3 answers
62 views
I need to pass a different value to a Test As Step every time it is called.  Is there a way to do this without using a datasource?

Example calling test:
1. Type 'user01' into UserNameTextbox
2. Type 'pw01' into PasswordTextbox
3. LeftClick on LoginButton
4. Execute test 'Search'

Example Test as Step 'Search'
1. LeftClick on SearchRadioButton
2. Type <desiredValue> into SearchTextBox

In Step 4 of the parent test, I want to pass a different value to the typed value in Step 2 in the Test as Step so that I can reuse this 'Search' test for more then just a very specific search scenario.  Is this possible?  I don't want to have to connect this particular test to a datasource as I want to be able to do everything from the parent test.

Konstantin Petkov
Telerik team
 answered on 26 Feb 2014
1 answer
67 views
Hello,
I created 3 simple tests.  Each one consists of a login step, testing a different link of the home menu in each, then logging off. (all on the same website of course)

I want these tests all put into one test called "TestList" so that they can all run right after another.  For some reason however, after Test1 runs, it simply finishes and says "1 passed out of total 1".  All 3 tests are enabled as well as each working independently when I enable each one separately.  Even when I right click to say "run to here" on Test2 it still simply stops after Test1 finishes.

Just wondering why this is occuring?  As I've created other TestLists in the passed and never seemed to have this issue before.
Boyan Boev
Telerik team
 answered on 26 Feb 2014
1 answer
23 views
I have a silverlight app with hundreds of recorded objects, but I'm getting to the point where the objects are not easy to find/maintain.  Is it possible to group objects by a particular element, say the RadPaneGroup or RadSplitContainer elements?  This would make it easier to find/use the elements needed for each test.

A copy/paste from the DOM explorer for an element I'd like to group by: 
<RadSplitContainer Name='contentTypesSplitContainer' AutomationId='contentTypesSplitContainer' Uid='16367560'>

I've tried to modify the SilverlightApp identification filter to:
RadSplitContainer Name is exactly contentTypesSplitContainer 
I get the error "We could find the element using the back-up search.  Modify the settings below or click the 'Troubleshoot' button." when I enter this manually into the filter criteria.

I've tried to navigate through the DOM and right-click and select "Replace element" on the above DOM object but I get the error "The technology of the element you have selected does not correspond to the current type!" when trying to replace the identifying filter with the "SilverlightApp" page/object.

Is it possible to clean up the Elements list at all, or am I stuck with hundred of objects in the Elements repository?  I know I can filter down based on the test, but I prefer to have some sort of order to my repository in case I need to select an object manually.
Konstantin Petkov
Telerik team
 answered on 26 Feb 2014
1 answer
28 views
I'm currently running into an issue where Test Studio will not record elements added ot the repository before and/or after adding them. This occurs most frequently with continue buttons and radio dials which are javascript driven. The tool records them with generic labels such as continuespan, continuespan(), span1, etc.

I noticed that when attempting to edit the element, findlogic is capturing the div id and tagindex. The problem occurs when trying to re-use the element in other tests involging different parameters, causing the test to fail because for some reason the element cannot be located. I also noticed that when recording new tests with different parameters and selecting the same continuebutton, the span for the tagindex changes.

I have tried rearranging the order in which Test Studio finds elements, adding the "class" tag and no luck. It continues to pick up the div id and tagindex. Currently, we do not have individual label ids on all the elements in our system but before I investigate that route, I wanted to inquire there is a solution through the tool that can help alleviate this problem that I'm unaware of?

Screenshots are attached if needed.
Cody
Telerik team
 answered on 24 Feb 2014
2 answers
78 views
Hi, 

     I am creating a "Proof of concept" project at work verifying if Test Studio standalone can run a "Test Studio Web Test" referencing another test from a separate Telerik Test Studio project. 

    Here's a high level of what I've created so far:
     
    1. I have created two Telerik test studio projects in Visual Studio 2012. Let's name them ProjectA and ProjectB. 
    2. ProjectB is special. It is a shared project.
    3. ProjectA references ProjectB. 
    4. In ProjectB, I have a "test studio web test". It consists of one step called "NavigatesToUrl". The step has been converted to code to become public and be seen to other projects. I modified the test's constructor so if class "Manager" ever goes null, it is always instantiated.
    5. ProjectA also has a "test studio web test". The test calls "NavigatesToUrl" method referenced from ProjectB. 
   
   The Problem: In Test Studio standalone, when I call the test in ProjectA, the test always fail. However, when i run in Visual Studio 2012, ProjectA's test passes. 
   
   Errors Messages:
     1. Compilation failed for [Test Studio Web Test].
     2. The type or namespace name 'ProjectB could not be found (are you missing a using directive or an assembly reference?). The assembly is there. I even added all the dlls in a separate folder. 













Velin Koychev
Telerik team
 answered on 24 Feb 2014
3 answers
123 views
Hi, admin

   We do a POC recently, for more than 400 urls redirects validation.

  During the recording, it can catch the actual redirects url, eg.  'Navigate to : 'http://google.com/' ' 

  I want to parameterize the url ' 'http://google.com/'' to a variable named 'redirectUrl'

 And then verify the redirect Url  to the expectedRedirectUrl in the data excel.


Can the telerik current version implement it?


Looking forward to hearing from you.
Many thanks.

 
  
Boyan Boev
Telerik team
 answered on 24 Feb 2014
3 answers
126 views
Hi,

I'm quite new to Test Studio but have had some moderate success early on.  I am testing an ASP.NET web application which is a Point of Sale (POS) system.  I have successfully recorded a test which logs in, adds some products to an order, fulfils part of the order, takes a payment, and closes the sale.

I can re-run that test perfectly.  The browser spins up and I see the various steps occur and then I see the new sale in the sales report.

I have now used that test as the basis for a Load Test but I am not getting what I expected, and I think perhaps what I need and what's being provided are not the same.  I need to simulate 10 concurrent users processing that sale.  I need that test run in 10 separate threads in one go.  What I get though is no browsers popping up and no new sales being created in the database.

There is no indication of failure, but nothing seems to be "happening".  If I run the single test manually and I see the browser come up, I can see the CPU sits between 40% and 50% for the duration of the test.  If I run the Load Test as a single user the CPU activity never gets this high.  Something is wrong.

So, can someone explain if what I expect of Load Test and what it does are actually not the same..?  I would have expected 10 browser windows to open up and 10 new sales to go into the database, but what I get instead is nothing.  The "steps" appear to have been reduced to a series of HTTP requests.

Anyway, some advice would be much appreciated.

Kind regards,
Jack
Cody
Telerik team
 answered on 21 Feb 2014
5 answers
107 views
Hi,

I'm using Test Studio 2013_2_1327 and when I try to add a COM reference (ieframe.dll) through Test Studio settings (Script Options\Add Reference) and save the project, the reference is not save in the Settings.aiis.

As a workaround I try to edit the Settings.aiis and add the reference manually (Interop.SHDocVw) inside the section "ProjectReferences":[..."Interop.SHDocVw"], and when I open Test Studio I can see that the reference is there.

Is not possible to add COM references? Is this a know issue?
Is my workaround safe or is there a safer way?

BR,
Luis
Cody
Telerik team
 answered on 21 Feb 2014
1 answer
25 views
I've run into this issue a few times in particular with Continue Buttons and Radio Dials that are javascript based. Recording these elements, whether they are added to the repository beforehand or after are not being recorded with the custom name given. Instead, it gives it a generic name (continuespan, continuespan(), span0 , etc) which sometimes causing the test to fail on subsequent executions.

I noticed that the FindLogic is picking up the div id and tagindex. The problem I've noticed is that in other tests using the same webpage but with different factors, the span number will change. No matter what I name these buttons to when recording the test, it is not saved in the test and does not appear anywhere when editing the element.

What is the best solution to this problem?

Attached screenshots for reference.
Cody
Telerik team
 answered on 21 Feb 2014
1 answer
60 views
Hello!
My name is Van Anh, I am using test studio trial. I created a scenario and I used it for load testing, but the function Load Testing isn't active. Is the Load Testing isn't active in the trial?
I look forward your reply.
Van Anh
Ivaylo
Telerik team
 answered on 21 Feb 2014
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?