Telerik Forums
Test Studio Forum
1 answer
43 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
95 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
158 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
175 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
151 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
39 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
97 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
4 answers
158 views
Hi there,,
In our application we have HTML popup load a PDF file.
My question is there is any way to validate the data in this HTML popup that loaded a PDF file...???

Regards,
Romio
Q.A.
Ivaylo
Telerik team
 answered on 20 Feb 2014
2 answers
89 views
Hello,

I am trying the Test Studio with a trial account while my company is finalizing the buy process, so far I am loving how easy it is to do automated tests with it.

Recently I have ran into an issue in my project. Some information beforehand:

CPU: I7 3770
Target Browser: IE8
Project: Silverlight
OS: Win7

So in the project I have an upload button the attaches some files from another data source(a local-remote pc). The upload process is as follows:
Click Upload > Connect to the target PC via Windows System Open Dialog Box(lets make it \\111.111.111.111\TelerikUpload) > Login via "Windows Security" by entering Username & Password > and goes on with file selection etc.

When I press OK in the Windows Security box, the IE that runs inside Telerik just stops working. How can I handle this since the Test Studio does not even record the IP that I entered. The test just records up until the point that I press upload(records this one) but nothing after that. So I cannot even access the code behind it to modify.

Hope to get a fast answer, or I will have to pause the record progress and do this part of the testing as manual.

Thank You,
Onur ODABASI

PS: the screenshot is from a Win8 PC but that should not make a difference since it is there to point out what window I am talking about.
Cody
Telerik team
 answered on 20 Feb 2014
3 answers
124 views
Hello,

I am writing a assembly for Test Studio

I have tried to specify the base class that my class inherits as being BaseTest and BaseWebAiiTest

I have a Manager instance that is initialized to Manager.Current.

I can reference the myManager.ActiveBrowser... just fine.

But when I try to create a wait using:

HtmlInputCheckBox _checkbox = myManager.ActiveBrowser.Find.ByExpression<HtmlInputCheckBox>(DomString);

HtmlWait waitObj = _checkbox.Wait;

           
_checkbox.Wait.ForVisible(5000);

I get the following error when the coded step executes:

System.NullReferenceException: Object reference not set to an instance of an object.

The line that causes this exception is

HtmlWait waitObj = _checkbox.Wait;

I cannot find what object that needs to be referenced to instantiate this wait object.

Thanks 


Cody
Telerik team
 answered on 18 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?