Telerik Forums
Test Studio Forum
4 answers
129 views
Hi, Support

  My scenario is to validate 400+ urls redirection.
  One question here is, only the 1st url need to login with username and password. The following urls do not need.

 So I want to add a step to verify if the dialog exist or not.
 If exists, eg. 1st url, then enter the username and password.
 If not, go next.

 How to make it? Will you please give a solution?
 Thanks.

Another related thread is 'Can a url be parameterized and verified?'
Boyan Boev
Telerik team
 answered on 27 Feb 2014
3 answers
217 views
Hi,Support

  I want to read and verify if the data in an excel certain column contains some specific text, and then go to next step
my step is

Assert.IsTrue(Data("ExpectRedirectUrl").ToString().Contains("http"))

"ExpectRedirectUrl" is the certain column in the excel,
"Http" is the specific text for verify.

Error message:

Line 84: (BC30516) Overload resolution failed because no accessible 'Contains' accepts this number of arguments.
Line 84: (BC30201) Expression expected.

Can you help to clarify??
Thanks.
Y
Top achievements
Rank 1
 answered on 27 Feb 2014
3 answers
75 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
85 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
37 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
36 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
83 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
140 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
151 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
129 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?