Telerik Forums
Test Studio Forum
1 answer
72 views
Hi, 

I am unable to see coding for test steps which I created in recording. I am all the steps mentioned in test studio documents and I am doing

1) selecting test step and right click on step
2) selecting customize step in code

after finishing this action, usually it open code but now I am unable to see coding.

Please help me out.

Thanks,

Naren
Velin Koychev
Telerik team
 answered on 19 Mar 2014
2 answers
107 views
Hi, 

I am having some difficulty getting the load test to start. If I have a couple of tests (user profiles) and run the load test, it works fine. 
If I have multiple tests (user profiles) such as 4 or 5 and if I run the load test, the page goes to the analyze page but then nothing happens. 
After a few minutes, the stop sign fades and the test stops. 
I am not sure why this is happening. 

Any help would be greatly appreciated. 
Thanks.
Ahmad
Top achievements
Rank 1
 answered on 18 Mar 2014
1 answer
113 views
13/03/2014 16:06:07' - 'Pass' : 15. Click '6002907TableCell'
'13/03/2014 16:06:07' - 'NotRun' : 16. Connect to pop-up window : 'http://189.10.9.208:8088/'

I am getting above message in test log  after recording test and playing it...pls help me out.

Thanks,

Naren
Boyan Boev
Telerik team
 answered on 18 Mar 2014
4 answers
136 views
Hi 
    I am new to telerik test studio and trying out the trial version.just to get the working of the element menu I tried to record a web test....
1. navigated to www.google.com
2.once again searched for google 
3.when all the links appeared tried to verify the text using build verifications on the first link

when I played it , the test  got aborted with this error message in the log:
"Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution."

I have even tried to insert wait for exits and also used break point....but it does'nt help
Boyan Boev
Telerik team
 answered on 18 Mar 2014
8 answers
316 views
I have a created a static class MyGlobalVariables in my Test Studio project to hold 10 global variables.
I have then created a Web Test MyTenTests which is made of 10 Test as Step scripts.
I have bound a datasource (an XML file) with Global Values to MyTenTests test
I want to extract the Global values and store them in MyGlobalVariables.variable1, MyGlobalVariables.variable2, .. MyGlobalVariables.variable10 for use in the whole project.

The idea is to set the values in the XML file once per project and make the values available throughout the project.

Ideally this would be done for a  Project or TestList but that is not currently an option so I am using Test as Step as a workaround.

Note the class is within the namespace not the individual tests.
Declaration

    public static class MyGlobalVariables
    {      
  // Set project specific global variables

  public static string MYURL= (string) Data["MYURL"];
        public static string MYToolsReminders= (string)Data["MYToolsReminders"];
  public static string MYCountVisitorsToURL= (string)Data["MYCountVisitorsToURL"];
    } 


Usage
The error mesaage is : The name 'Data' does not exist in the current context
Velin Koychev
Telerik team
 answered on 17 Mar 2014
5 answers
105 views
Hi Guys

I was wondering if the ActiveBrowser.ClearCache(BrowserCacheType.History) was redundant, when I attempt to us this on one of my tests , I'm getting different errors based on which browser I'm using

Thanks

Chris
Boyan Boev
Telerik team
 answered on 14 Mar 2014
3 answers
94 views
I need to write a reusable testing function that will find a nested IFrame and return it as a Browser object to be used later.  The code below never seems to find the nested frame.  frameCount always comes back equal to one (even though there are 2 frames on the page, the parent frame and the nested frame).  Manager.ActiveBrowser.WaitForFrame(leaseCalcFrame) always returns null.  Thoughts on what I could be doing wrong or missing?  Thanks!

            Manager.ActiveBrowser.Frames.WaitAllUntilReady();
            Manager.ActiveBrowser.Frames.RefreshAllDomTrees();
            var framesCount = Manager.ActiveBrowser.Frames.Count;
            var leaseCalcFrame = new FrameInfo { Id = "NestedFrameId", Name = "NestedFrameName" };

            if (Manager.ActiveBrowser.WaitForFrame(leaseCalcFrame) != null)
            {
                var iframe = Manager.ActiveBrowser.Frames[leaseCalcFrame.Id];
                iframe.WaitUntilReady();
                return iframe;
            }

            return null;

Velin Koychev
Telerik team
 answered on 14 Mar 2014
3 answers
104 views
Hi Guys

I was wondering if anyone could help. I am attempting to create a test which uses an If else statement following the ​Pseudocode below

if(Test as Step executing has passed)
       Log that the Test as Step has passed (i.e. so that the tester knows the pre-conditions have been met) 
       Continue with this test case
Else
       Log an error or fail and stop the test stating that this has failed.


Is it possible to get the results from a test case that you are using as a 'test as Step'?

Thanks

Chris
Christopher
Top achievements
Rank 1
 answered on 13 Mar 2014
1 answer
150 views
Hi,

I have a couple of  websites to automate and they only differ in data. i.e. all the CSS is same.
Consider the 2 websites:
http://tradetrucks.com.au/
http://tradefarmmachinery.com.au/

I need to click on 1st element  on the home page of tradetrucks, which has the xpath:/html/body/div/div/div/div[3]/div/form/div/div/div/div/div/a
and the 1st element on the home page of tradefarmmachinery also has same xpath: /html/body/div/div/div/div[3]/div/form/div/div/div/div/div/a

But, when I record the test of clicking on the element in test studio on one of the website, I cannot reuse it for other website because the teststudio considers all the properties of element to identify it.

How do I make test studio use only xpath in identifying this single element. The rest of the elements in the test have to be identified with all properties.

Please help.

Thanks,
Meher
Boyan Boev
Telerik team
 answered on 13 Mar 2014
7 answers
385 views
Hi,

I have an If using a verify exist validation to handle the case when an error message is displayed after a button is clicked.
I noticed that usually the If does not look like it executes so I added another Verify Exists before the If and sure enough the Verify Exists fails immediately without waiting the 10s timeout configured for the step. Adding a 2s wait will solve the problem (see screenshot) however I do not want to wait a fixed amount of time before checking (and it could also take more than 2 s for that error to appear).

Is this a Test Studio bug?

Regards,
Ory
Boyan Boev
Telerik team
 answered on 13 Mar 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?