Telerik Forums
Test Studio Forum
3 answers
286 views

Hello,

I'm having trouble with using Find.ByXPath function in the Test Studio api.

 

<li class="k-item" role="treeitem" aria-selected="false " data-uid="bec31be9-e618-43fd-8060-a7df0c2c8e14">
<div class="k-mid">
<span class="k-icon k-plus" role="presentation"></span>
<span class="k-checkbox-wrapper" role="presentation">
<input tabindex="-1" class="k-checkbox" id="_bec31be9-e618-43fd-8060-a7df0c2c8e14" type="checkbox"/>
<label class="k-checkbox-label" for="_bec31be9-e618-43fd-8060-a7df0c2c8e14"></label></span>
<span class="k-in">Checkbox Node Text</span>
</div></li>

The problem with locating HtmlControl started with having the dynamic IDs that are generated by Kendo. They change all the time, so we need to find a way to locate the controls without using IDs. I talked with Dev team, and it concluded it is not feasible to change these IDs or add unique name tags.

In this case, I want to check the checkbox of "Checkbox Node Text". I thought xpath maybe a good way to do it by relatively searching from the Span Tag of "Checkbox Node Text".

The Find.ByXpath function works partially but not when I try to traverse relatively. Maybe my xpath syntax is off, but here is what I tried


First:
Element hc = Pages.MYPage0.FrameReal.Find.ByXPath("//span[text()='Checkbox Node Text']");
This works. It finds the correct element and I can operate on it.

Second:
Element hc = Pages.MYPage0.FrameReal.Find.ByXPath("//span[text()='Checkbox Node Text']/preceding-sibling::span[@class='k-checkbox-wrapper']/child::input");

This doesn't work. Null object.

Third:
Ultimately, this is what I want to get:
Element hc = Pages.MYPage0.FrameReal.Find.ByXPath("//span[text()='Checkbox Node Text']/preceding-sibling::span[@class='k-checkbox-wrapper']/child:input");

This doesn't work. Null object.

I have tried many combinations. For some reason, the relative traverse in xpath such as parent, child, preceding-sibling, etc not being processed.

I appreciate your advice! Thank you!

 

 

Elena
Telerik team
 answered on 01 Aug 2016
16 answers
722 views

Hey Guys,

I am trying to setup our Test Studio system as indicated by the attached network diagram. After opening the correct ports and various configuration checking I am now able to connect to the Scheduling Server from Test Studio on the Authoring Machine. In Test Studio on the Authoring Machine I am able to see that the Scheduling Server's Execution Service and the Execution Server's Execution Service are both connected to the Scheduling Server's Scheduling Service. I try to schedule or run a list remotely and the program hangs waiting to Update Latest Project Files. After about 5 minutes it errors.

The execution service logs are empty and the scheduling service log has the following repeated hundreds of times:

[03/24 08:43:49,Telerik.TestStudio.ExecutionManagerService.exe(2040:24),Execution] JobBroker.ctor() : Job runner refused this job!
[03/24 08:44:19,Telerik.TestStudio.ExecutionManagerService.exe(2040:24),Execution] JobRunner.RunJobAsync() : Unable to load test list, aborting run.
[03/24 08:44:19,Telerik.TestStudio.ExecutionManagerService.exe(2040:24),Execution] JobRunner.RunJobAsync() : Use source control server: NO
[03/24 08:44:19,Telerik.TestStudio.ExecutionManagerService.exe(2040:24),Execution] JobRunner.RunJobAsync() : Project source location: C:\svn\TestLibrary\UI Automation\SEWeb
[03/24 08:44:19,Telerik.TestStudio.ExecutionManagerService.exe(2040:24),Execution] JobRunner.RunJobAsync() : Check if test list is available at project location. Consider cleaning Job storage!
[03/24 08:44:19,Telerik.TestStudio.ExecutionManagerService.exe(2040:24),Execution] JobRunner.RunJobAsync() : Job storage location: C:\Windows\system32\config\systemprofile\AppData\Roaming\Telerik\TestStudio\Scheduler\ScheduleStorage
[03/24 08:44:19,Telerik.TestStudio.ExecutionManagerService.exe(2040:24),Execution] JobBroker.ctor() : Job runner refused this job!

I have all three computers sync with SVN repositories in the exact same file structure as indicated by the attached picture.

I have read other posts and documents and have tried the following:

  • Changing the Scheduling and Storage Service to use an administrator account
  • Attempting to run the test on the Scheduling Server's Execution Service
  • Turning off all 3 Computers' Firewalls
  • Reinstalling the Scheduling, Storage, and Execution Services on the Scheduling Server

As another note, I was able to get a test to run remotely previously while on a Trial of the software on different VMs.

Please help me see what I am missing. I have read the following posts to no avail at solving my current issue:

unhandled-error-when-trying-to-run-list-remotely

test-list-not-running-on-execution-machine

Thank you in advance for any assistance,

Kelly

Elena
Telerik team
 answered on 28 Jul 2016
1 answer
97 views

Hi ad,

I'm using Test Studio Web & Desktop, when I updated new version then the error was displayed (this installation package cannot be opened contact the application vendor to verify that this is a valid Windows Installer package). Please advise me. Thanks!

Steps to replicate:

1. Open Test studio

2. Click Help tab

3. Click Update icon

4. Click download -> install.

Observed result: this installation package cannot be opened contact the application
vendor to verify that this is a valid Windows Installer package.

Elena
Telerik team
 answered on 26 Jul 2016
4 answers
68 views
When configuring the email settings, it says: "User Email". At first I thought this was the sender email (thus the email used as sender). However, this is just the user name to login. On most mailing services, this doesn't have to be the actual user email. 

I recommend that you rename this label to "Username" and add an additional "Sender email" field
Elena
Telerik team
 answered on 26 Jul 2016
16 answers
338 views
Hello, Test Studio is having trouble finding some cell and row elements inside of a RadGridView that we have made editable.  When I add an editable textblock cell to the element repository, Test Studio gives it the find logic of:

AutomationId is exactly CellElement_0_5
XamlTag is exactly textblock

However, I cannot get Test Studio to find the element in a test with this find logic.

I know that the Assigned Cell AutomationId's came pre-packed with the RadGridView, because the developers didn't put that in.

I do have an AutomationId on the RadGridView element itself, is it possible that there might be two different AutomationIds conflicting on the same element?
Boyan Boev
Telerik team
 answered on 26 Jul 2016
5 answers
352 views
I am trying to test a web application that uses windows auth and I need to be able to log in to the application as a different user. I can do this by shift+right clicking on IE and selecting "Run as different user" or by running IE from the command line (or a shortcut) using "runas /user:name" etc., but there does not seem to be a way to configure Test Studio to adjust how it runs each browser. Is there some way I can launch a browser (even just IE) as a different user with Test Studio?
Elena
Telerik team
 answered on 22 Jul 2016
1 answer
116 views
Hello, I seem to be having a problem trying to select the table when the excel data has been added, nothing seems to be there. Is there something I am doing wrong to cause this problem? Thank you.
Boyan Boev
Telerik team
 answered on 22 Jul 2016
1 answer
146 views

Hello, i tried to bind data to a 'click' action. Ex: i have an action is click on 'abclink' then i'd like to make data driven on it. So i added data source and bind data, but at the step select column to step, i dont see textbox or something so i can select. i only see 2 buttons are Set and Clear.

Please advise what I should do in this case. Thank you!

 

 

Nikolay Petrov
Telerik team
 answered on 19 Jul 2016
3 answers
169 views

I have removed some obsolete verification steps from test. When I try to execute the test list, I got the following error. Any ideas how to fix this issue?

\\sw-fitnes\test.studio.myhours.tests\MH.Web\Pages.g.cs(1478,65) : error CS0102: The type 'MH_Web.Pages.Time1Page.ExpressionDefinitions' already contains a definition for 'Span'
\\sw-fitnes\test.studio.myhours.tests\MH.Web\Pages.g.cs(1354,68) : error CS0102: The type 'MH_Web.Pages.Time1Page' already contains a definition for 'Span'

Boyan Boev
Telerik team
 answered on 19 Jul 2016
2 answers
89 views

Step:

1. Record check action (see attachment)

Result: Checkbox is checked in web and step recorded as attachment

2. Manual uncheck the checkbox 

3.Replay step 1 using Test Studio

Result: the checkbox is not checked

Expected result: the checkbox is checked

It did not happen in previous build 2016.1.321.0, seems issue come from InvokeOnclick option

Elena
Telerik team
 answered on 18 Jul 2016
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?