Telerik Forums
Test Studio Forum
3 answers
138 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
169 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
46 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
181 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
130 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
246 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
630 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
6 answers
168 views
I'm using the latest trial version of Test Studio and am building a proposal to use it for my company.

I've written a simple test but can't get the FileUpload dialog to display in Firefox 12.0. The test just hangs. All other browsers work ok.
I've ensured that the Firefox settings have been configured correctly.

Any clues as to why I'm getting this error in Firefox:

Timed out waiting '10000' msec. for any dialog to be handled '1'

Cheers,
Steve
Ivaylo
Telerik team
 answered on 15 Jun 2015
3 answers
78 views

I having problems with no log files being produced from my test runs.  I set up a test list today, went into Edit Settings, set my LogLocation and made sure CreateLogFile was checked.  Ran my test.  No log file.  Tried changing the LogLocation to my C drive.  Ran my test.  No log file.  Tried changing the location back to TestStudio's default.  Ran my test.  No log file. Are there other settings elsewhere that I need to change?

 

Thanks.

Ivaylo
Telerik team
 answered on 15 Jun 2015
3 answers
118 views

Hi,

 We use TFS as repository for our project and store TFS test related files as well.

I am wondering whether we need to check in Pages.g.cs everytime we add a new object.

We are facing object not found issues intermittently. But team mate would have checked in latest objects to TFS.

I was of impression that pages.g.s gets created every time project is loaded.

Any inputs will be appreciated.

Thanks,

VVP

Cody
Telerik team
 answered on 14 Jun 2015
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?