Telerik Forums
Test Studio Forum
7 answers
104 views

Hi,

I've encountered the problem with mobile test studio. Is there a way how to simulate real typing for mobile web testing ? Because as for now when i TAP a text field for password on connected Android Device a start typing it will make a test step action "SetValue". Because of that i am not able to log in a page because it's saying that the text field is required. But after manually taping the text field and type using the android keyboard i can log in as usual. 

Boyan Boev
Telerik team
 answered on 05 Jan 2017
5 answers
108 views

Hi Team,

 

How can I retrieve the URL of a hyperlink on a application ? Can this be achieved by Telerik test Studio ? if yes, how ?

 

Attached the screenshot for reference

 

Thanks

Abdul

Boyan Boev
Telerik team
 answered on 05 Jan 2017
4 answers
155 views

I've performed a lot of searching/reading, and cannot find a solution to my problem.  First off, I'm far from a coding expert.  I currently have a custom coded step to connect to SQL Server, run a Query (select/join/etc.), and print the result to the log.  This works:

SqlConnection thisConnection = <connection string)>
thisConnection.Open();
Log.WriteLine(thisConnection.Database);
SqlCommand thisCommand = thisConnection.CreateCommand();
thisCommand.CommandText = <SQL query>
SqlDataReader thisReader = thisCommand.ExecuteReader();
while (thisReader.Read())
{
       Log.WriteLine("BarcodeId: " + (String) thisReader["BarcodeId"]);
}
thisReader.Close();
thisConnection.Close();

 

The result from above writes my expected result to the log.  Now, I want to use this result to data bind a test input box further down in the script.  I've tried playing with set/getextracted values, etc.  I know how to do this if extracting an HTML TextContent into a DataBindVariable, but unsure how to do the same with a result from SQL query (coded database step).  Thanks in advance. 

Boyan Boev
Telerik team
 answered on 05 Jan 2017
1 answer
58 views

Hello

Had posted this earlier in the Telerik framework discussion, guess this is the right place!

I am trying to create a multilevel test for entering 100 records in a Client profile table through 5 different pages called in a specific order (each having some 30-40 fields).

Scenario (created a driver script for this) -
1. Login and initialize application
2. Call Test A (parent test - data bound to 100 records in excel)
3. Logout

Steps in Test A
1. Enter data in Page1 and continue to Pg2(Test B1)
2. Enter data in Page2 and continue to Pg3(Test B2)
3. Enter data in Page3 and continue to Pg4(Test B3)
4. Enter data in Page4 and continue to Pg5(Test B4)
5. Enter data in Page5 and save record(Test B5)
6. Navigate back to Page 1 for next iteration

My issue is:
1. Data for Test B1, B2 .. B5 are in 5 different sheets in excel. And I can bind the parent TestA to only one sheet at a time. So I consolidated all of them into one sheet. Is there any other better solution to this?

2. InheritParentDatasource set to True for Tests B1 to B5. Even after binding all the variable manually in the child tests, they are not taking the values from the parent table when the test is run
eg- Enter text in "ClientProfilePersonNameBirthNameTest" - DataDriven : [$(BirthName)] is shown when I bind the step in Test B1 to the BirthName variable coming from TestA but it doesn't actually enter that value during runtime. Iteration#1 line in runtime log shows the value in this variable so its available to Test B1

Can anyone tell what the issue might be?

Thanks

 

Boyan Boev
Telerik team
 answered on 03 Jan 2017
6 answers
98 views

Hi Team,

I'm looking for a way to count my Local Data rows (or columns) and perform a specific function if a particular row is hit. The idea is something like the attached image. 

I can't seem to find any resources in the net for this. I'm just being introduced to Telerik so i'm learning as it goes and i'm really hoping you guys can help to give some pointers on this question. 

Many many thanks in advance :) 

Thanks,

Regards,

Pravin

praja@dongenergy.dk

Boyan Boev
Telerik team
 answered on 03 Jan 2017
1 answer
105 views

I have MS Visual Stuido Professional 2015 and Test Studio 2016.3.928.0 installed. When I run a test list from test Studio it gives attached log. when I run it from Command prompt it gives following exception : 

C:\Program Files (x86)\Telerik\Test Studio\Bin>ArtOfTest.Runner.exe list="C:\Users\molugun\Desktop\repos\testfolder1\subfolder\TestLists\testlist.aiilist"

Could not load file or assembly 'Microsoft.TeamFoundation.VersionControl.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
   at ArtOfTest.Common.Serialization.JsonKnownTypeConverter.Create(Type objectType, JToken jObject)
   at ArtOfTest.Common.Serialization.JsonKnownTypeConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Populate(JsonReader reader, Object target)
   at Newtonsoft.Json.Serialization.JsonSerializerProxy.PopulateInternal(JsonReader reader, Object target)
   at ArtOfTest.Common.Serialization.JsonKnownTypeConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at ArtOfTest.Common.Design.SerializerService.DeserializeFromJSON[T](String serializedObject, Boolean autoLoadTypesFromAssemblies)
   at ArtOfTest.WebAii.Design.ProjectModel.Project.LoadSettings()
   at ArtOfTest.WebAii.Design.Execution.CommandLineHelper.PrepareProject(String projectPath)
   at ArtOfTest.WebAii.Design.Execution.CommandLineRunner.ExecuteListInternal(TestList list, String projectPath)
   at ArtOfTest.WebAii.Design.Execution.CommandLineRunner.ExecuteTestList(String aiiListPath)
   at ArtOfTest.Runner.Program.CommandLineExecution(String[] args)
   at ArtOfTest.Runner.Program.Main(String[] args)

Elena
Telerik team
 answered on 03 Jan 2017
6 answers
216 views

Im trying to run a Test Studio test as part of my Release Management.

I have a Powershell script to run the test.

try
{
    artoftest.runner.exe test="E:\TestStudioTry1\TestingPrototype\logon.tstest" 
    if (!$?)
    {
        write-output "Failed"
        throw "Tests Failed"
    }
}
catch
{
    Write-Error $_.Exception.Message   
   # exit 1 # to get an error flagged so it can be seen by RM
}

This script runs fine from Powershell ISE but when running as a step in  RM it fails, looking at the logs i get.

         "Message": "------------------------------------------------------------\r\n'09/09/2016 16:45:02' - Executing test: 'logon', path: 'logon.tstest.'\r\n'09/09/2016 16:45:02' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2016.2.630.0'.\r\n'09/09/2016 16:45:02' - Starting execution....\r\n'09/09/2016 16:45:04' - Failure detected during execution. Details:\r\n------------------------------------------------------------\r\n'09/09/2016 16:45:04' - ArtOfTest.WebAii.Exceptions.UnsupportedNonInteractiveOperationException: Dialog monitoring can not be enabled when running in non-interactive mode. Follow the link for more information: http://docs.telerik.com/teststudio/user-guide/command-line-test-execution/continuous-integration/team-foundation-server-builds.aspx\r\n   at ArtOfTest.WebAii.Design.Execution.ExecutionContext.SetDialogMonitoring()\r\n   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTestIteration(Object codeBehindInstance, Boolean isDataDriven)\r\n   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)\r\n   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)\r\n------------------------------------------------------------\r\n'09/09/2016 16:45:04' - Test completed!\r\n",

How does one include a test as part of a release management flow?

Elena
Telerik team
 answered on 03 Jan 2017
1 answer
64 views

Hi team, 

I'm hoping to find a way to execute a specific action if the current data row number is equals to X number in my local data for data driven testing. 

I've manage to find a property that gets the CurrentDataRow but i can't seem to manipulate it accordingly. Here's the idea of the code that i'm looking to achieve but it can't seem to work. Do help to advice. 

   public void Login_CodedStep()
        {                        
            if(ExecutionContext.CurrentDataRow == 1) {

              this.ExecuteTest("Login\\VerifyFailLogin.tstest");

    else if (ExecutionContext.CurrentDataRow == 2)

             this.ExecuteTest("Login\\VerifyPassLogin.tstest")

             }

         }

Elena
Telerik team
 answered on 02 Jan 2017
1 answer
96 views

Hi,

I did a manual download of Test Studio (I think due to computer security, the connection to the installation server didn't go through). I went to Manual Activation because trying to log in keeps saying "We couldn't log you in. The Telerik license server cannot be reached now."

I'm on the manual screen, I hit Get Activation Key and it takes me to Managed License Keys, says I have none, and doesn't have any button saying add a key or anything like I've seen in some examples. Where/How do I get the trial activation key?

 

Thank you

Boyan Boev
Telerik team
 answered on 02 Jan 2017
1 answer
56 views

I need to be able to run the same tests on different webpages.  The webpage urls are organized differently, and as follows:

webpage.com/product/version/type

product-version.webpage.com/type

The problem that I run into is the pages and panels make incorrect urls under the hood when I use a BaseUrl, and I'm not sure how to fix it.  

I've read about everything I could find on how BaseUrl works, but haven't been able to make anything work yet.

On a similar topic, I'm also shortly going to be using currently created tests on a different webpage then they were created on.  These tests were created without any form of BaseUrl, and my fear is that they will be incompatible without going through every element and individually changing certain fields.  Is that analysis correct?

Thank you very much for your help,

Chris

Elena
Telerik team
 answered on 30 Dec 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?