Telerik Forums
Test Studio Forum
2 answers
270 views
Hi,
 

We are evaluating Telerik Test Studio for performing functional and load tests on ASP.NET sites. So far there are some major issues that we are facing and prevent us from implementing a basic test for load test (functional test runs more or less fine). Problems are as follows:

 1. There is an application server with its own authentication logic. Upon authentication user gets session identifier, which is eventually set in cookie. The problem here is that after recording a load test and re-running it, old session identifier is used. And no cookies are presented in dynamic targets so that this could somehow be fixed. In the end result application server reports back that the given session is expired and test fails.
 

2. On the side of ASP.NET pages are using custom PageStatePersister, which stores view state in session. And the problem here is that the data that was once stored in session page state, is discarded by other requests initiated by Test Studio. I can vaguely imagine why this is so.
 

To make a decision on whether to continue with Telerik Test Studio, we need to know if this is a know issue/limitation or this is something that we do wrong.


Web site and test solution are attached.
Cody
Telerik team
 answered on 19 Jun 2015
6 answers
110 views

Hi everyone,

I have a problem about binding a source to input a textbox. In my company's online tool, you can create statistical models with variety of way. I need to test every model. I listed all steps to create a model. Firstly, in order to create a model, you need to give a name. All steps working well. However, i can not create automated creating of models. I can not bind model name textbox with a datasource. I attached the images that show my problem. I need to add a source to TxtWizardShortName property a datasource to take names. I added also data source i created. Please help me. Thank you

Cody
Telerik team
 answered on 18 Jun 2015
4 answers
148 views

 Hello.

 Is there any workaround how to avoid timeout issue on Navigate to step when executing a test list? This is quite annoying behaviour....

 

 

 Overall Result: Fail
------------------------------------------------------------
'4.6.2015 1:30:20' - Executing test: 'Failed.Login(Chrome)', path: 'Basics\Failed.Login.tstest.'
'4.6.2015 1:30:20' - Using .Net Runtime version: '4.0.30319.18449' for test execution. Build version is '2015.1.319.0'.
'4.6.2015 1:30:20' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'4.6.2015 1:30:30' - Using 'Chrome' version '43.0.2357.81' as default browser. 
'4.6.2015 1:30:30' - Using 'http://sw-fitnes/BAP/' as base url.
'4.6.2015 1:30:52' - 'Fail' : 1. Navigate to : '/'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'efde698c-d14a-4235-a062-003a0b1906af',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
   at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
   at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)

InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'efde698c-d14a-4235-a062-003a0b1906af',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
   at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
   at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
 ---> System.TimeoutException: Timed out waiting for command to be handled
   at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
   at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.IsReady()
   at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri, Boolean useDecodedUrl)
   at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri, Boolean useDecodedUrl)
   at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url, Boolean useDecodedUrl)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.NavigateToActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'4.6.2015 1:30:52' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'4.6.2015 1:30:52' - Overall Result: Fail
'4.6.2015 1:30:52' - Duration: [0 min: 22 sec: 34 msec]
------------------------------------------------------------
'4.6.2015 1:31:03' - Test completed!

Ivaylo
Telerik team
 answered on 18 Jun 2015
3 answers
126 views

I am working on testing passing keystrokes into a TextBox within a RadNumericUpDown control that is part of my WPF application. I am trying to insert a digit into a number already in a TextBox. Consider the following situation...

I have just typed the value 1000 into the TextBox while recording. Test Studio records my left mouse click that focuses in on the TextBox in a single step and records the typing of 1000 in the proceeding step. Now, I move focus away from the TextBox I just entered 1000 into by hitting the tab key.

I would like to add the digit 1 into the 1000 already present in the TextBox such that the value ends up being 10(1)00 or 10100. So I focus my cursor at the position in the TextBox between 10 and 00, type 1, hit tab, and set up a verification step to make sure the value in the TextBox has turned into 10100. Visually at this point in the recording, I see 10100 in the TextBox.

I then quit recording my application so I could execute it. When I execute it, it fails on the verification step because when I enter the 1 into the TextBox, it replaces the entire TextBox value from 1000 to 1. So instead of having 10100 in the TextBox, it has 1.

Is it possible for me to insert a digit into a TextBox value without bombing on the rest of it?

*It should be noted that I am simulating both real keystrokes and mouse clicks (not sure if this matters).*

Thanks!

~ Max

 

Cody
Telerik team
 answered on 17 Jun 2015
5 answers
148 views

I'm wondering what the difference between Current Virtual Users and Created Virtual Users. 

In the screenshot for a datadriven test for a simple login and logout (5000 unique user credentials, but my Virtual User is limited to 100 in the trial version), I ran for 2 minutes, ramping up from 1 to 2 users in 1 minute. 

I really don't get the Created Virtual Users (highlighted) - is this 143 users at that point in time in the graph? Even if I did the math for concurrent users divided by per unit of Time (in this case, over 120seconds/2mins) this does not add up. Confused. Documentation does not say much - http://docs.telerik.com/teststudio/user-guide/load-testing/load-analyzing-results.aspx 

Thanks. 
Cody
Telerik team
 answered on 17 Jun 2015
3 answers
38 views

Execution happened for the first time but not the second time , secondly please also describe how to populate test lists and also to analyze results as iam in the process of evaluating the tool for future purchase .

Some times while recording it gives many instances in the chrome browser and for internet explorer browser it is not working at all.

Ivaylo
Telerik team
 answered on 17 Jun 2015
1 answer
161 views

Hi guys,

we have a Test Studio project that we've connected to TFS online (Team Foundation Service). We can open and check in and check out - no problem. We need to be able to schedule an execution on a remote machine via CMD and we're using this approach: http://docs.telerik.com/teststudio/features/scheduling-test-runs/tts-command-line-client

However, this application doesn't accept parameters that specify whether we need to get the project from the local copy or to pull it from TFS. As a result - it always tries to get it from TFS. This doesn't work because there doesn't seem to be any way to supply credentials. We can see the following request being made:

{
  "Id": "b29b354a-2921-463b-9508-c95a0869504e",
  "TestList": "MyFirstTestList",
  "Path": "MyFirstTestList.aiilist",
  "PathType": 4,
  "Credentials": null,
  "MachinesToUse": [
    "bgshs639"
  ],
  "Schedule": {
    "IsRecurring": false,
    "TimeToRun": "2015-06-13T13:26:00Z",
    "DayOfMonth": null,
    "DayOrdinal": null,
    "DaysOfWeekMask": 0,
    "FirstDayOfWeek": 0,
    "Frequency": 0,
    "Interval": 0,
    "MaxOccurrences": null,
    "MonthOfYear": null,
    "RecursUntil": null
  },
  "Notification": {
    "EmailsList": null,
    "Notify": 0,
    "ShowGeneralInformation": true,
    "ShowFailureInformation": true,
    "AttachExcel": false,
    "AttachWord": false,
    "AttachAiiResult": false,
    "TextBefore": "",
    "TextBetween": "",
    "TextAfter": "",
    "Subject": "RunResult: NameOfRun; ResultOfRun; EndTime EndTimeOfRun; Pass/Total summary Machine: MachineName"
  },
  "ProjectInfo": {
    "ProjectId": "aaa94839-38d3-45fe-a728-8b4a29c58aa3",
    "ProjectSourceLocation": "C:\\Users\\stoilcho\\Documents\\Test Studio Projects\\MyProject",
    "SchedulingServerUri": "http://192.168.11.135:8009/",
    "SourceControlServerAddress": "https://stoil.visualstudio.com/defaultcollection",
    "ProjectRemotePath": "$/MySolutions/MyProject",
    "UseSourceControlVersion": true
  },
  "RootFolder": null,
  "Distributed": false
}

Why is credentials sent as null? 

So my questions are:

A) How to configure Telerik.TestStudio.CommandLineClient so that I can control when I want to pull the project from TFS? If there is no parameter for this - can we please log a feature request

B) How can I pass my TFS credentials to Telerik.TestStudio.CommandLineClient when I'm trying to pull the project from TFS? Once again - can we please log a feature request on this if it's currently not possible. Is there some workaround ?

 Thanks guys!

 Regards,

Stoil

Cody
Telerik team
 answered on 16 Jun 2015
2 answers
114 views

Hi,

 I am trying to run a test list in TTS using the below steps:

1.      Logged into a remote machine and launched TTS
2.      Created a schedule with 10 tests to run on Firefox browser and scheduled it for a particular time
3.      When the schedule gets triggered, browser is launched for each test but its closing immediately.
4.      At the end of the schedule (After completion of 10 tests), the below popup appears showing an error and I receive the schedule result report.5.      When I run the tests individually one by one, all are passing.
6.      When I do not schedule a test list but click on ‘Run List’, it works perfectly fine.

 

Kindly provide a solution for this ASAP.

Pravallika
Top achievements
Rank 1
 answered on 16 Jun 2015
5 answers
236 views
I have followed the steps mentioned in http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/execution-extensions.aspx

Create a Class Library
Added the necesssary references

Below is the Code:
It is the same as given in the above link.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Data;
using System.Data.OleDb;
using System.Windows.Forms;
using ArtOfTest.WebAii.Design.Execution;

namespace ClassLibrary1
{
    public class Class1 : IExecutionExtension
    {
        public void OnAfterTestCompleted(ExecutionContext executionContext, TestResult result)
        {
            
        }

        public void OnBeforeTestStarted(ExecutionContext executionContext, ArtOfTest.WebAii.Design.ProjectModel.Test test)
        {
            
        }

        public DataTable OnInitializeDataSource(ExecutionContext executionContext)
        {
            return null;
        }

        public void OnStepFailure(ExecutionContext executionContext, ArtOfTest.WebAii.Design.AutomationStepResult stepResult)
        {
           
        }

        public void OnAfterTestListCompleted(RunResult result)
        {
            string msg = string.Format("TestList '{0}' completed on '{1}'. ({2}/{3}) Passed", result.Name, result.EndTime, result.PassedCount, result.TestResults.Count);
            StreamWriter file = new StreamWriter("c:\\test-list-results.txt");
            file.WriteLine(msg);
            file.Close();
        }

        public void OnBeforeTestListStarted(TestList list)
        {
           
        }
    }
}


I have build the code and copied the dll ClassLibrary1.dll to bin folder of Telerik.
Also add the ClassLibrary1.dll in the refernces of Telerik.
Still the OnAfterTestListCompleted is not getting invoked

Ivaylo
Telerik team
 answered on 16 Jun 2015
20 answers
597 views
Hi,

When recording, how do I get the recorder to record actions taken in a modal popup dialog?

Thanks

/Joakim
Arvind Dhiman
Top achievements
Rank 1
 answered on 15 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?