Telerik Forums
Test Studio Forum
3 answers
148 views
Hello,

I need help with while loop -my test case contains several steps as part of while loop,  I want to check status of one element and repeat steps inside loop as long as element has specified status, it jumps into loop first time but after that it crashes even that status of element has not been changed. I tried almost everything but wihout success ..

so this loop is useless because it doesnt repeat steps inside it in case of true condition I dont know where is the problem,  i am aware that main point here is that element in verification condition must be available at the end of the loop (i am verifying this by adding same verification at the end of the loop what pasess of course), i tried also build custom element and use it as verify condition in form of ExistNot but issue persists..    

thanks for help
Boyan Boev
Telerik team
 answered on 05 Aug 2016
7 answers
242 views

Hi

I'm trying to write a check to see if the word "error" is visible anywhere on the current page: how might I do this?

I'd hoped to be able to do something like...

Element e = Find.ByContent("p:error");
if (e.Equals(null))
{
    Log.WriteLine("Could not find error message");
}

But I get this error:

System.NullReferenceException: Object reference not set to an instance of an object.

Any help gratefully received.

Thanks

 

Elena
Telerik team
 answered on 05 Aug 2016
5 answers
140 views
I've built test lists that I run whenever we do a new build to a specific environment.
In my case, we're using TFS build agents to deploy the solution to DEV, STG, and PROD.
Is there a way to trigger a specific Test Studio Test List whenever the build is deployed?
Elena
Telerik team
 answered on 03 Aug 2016
3 answers
106 views

Hi,

I am trying to do a load test with multiple unique accounts logging into the test site at once. I am doing a data driven approach, however I do not think I am doing it right. I set up a test with 100 unique accounts bounded, however whenever I try to upload my test to the load test application by capturing user profile it will go through all the steps 100 times before being uploaded. Am I doing it correctly? I feel like I am doing something wrong as the test studio will sometimes crash when trying to go through all 100 accounts tests before being uploaded to the user profile for testing.

Elena
Telerik team
 answered on 02 Aug 2016
1 answer
57 views

Hi,

I am automating an imaging application.

 

Here we have pan functionality, where in we can drag the image.

After dragging and before dragging I get the screen rectangle and store it. Both the objects are same in my case but I am expecting a changes since the image object is moved.

 

I have tried refreshing object and visual tree of application, still not able to resolve.

 

 

Thanks!

Devendra

Elena
Telerik team
 answered on 02 Aug 2016
2 answers
426 views

Hi,

I have this code so that it can handle confirm dialogs:
Manager.DialogMonitor.AddDialog(AlertDialog.CreateAlertDialog(ActiveBrowser, DialogButton.OK));
Manager.DialogMonitor.Start();

But I got this error:

(CS0103) The name 'AlertDialog' does not exist in the current context
(CS0103) The name 'DialogButton' does not exist in the current

I added the System.Windows.Forms reference (following the instructions from this link):
http://docs.telerik.com/teststudio/features/coded-steps/add-assembly-reference

I also added this on top of the code behind file:
using System.Windows.Forms;

After adding the reference and the using statement, I still get the error message

Question:
1. What .dll should I use? I found 3 files with the same name(System.Windows.Forms.dll) but in different locations, I tried to reference them one by one but still the same error message appears
a. C:\Windows\Microsoft.NET\Framework64\v4.0.30319
b. C:\Windows\Microsoft.NET\Framework\v4.0.30319
c. C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089

2. Is there something that I am missing? how could I make this work?

Thanks!

Boyan Boev
Telerik team
 answered on 02 Aug 2016
1 answer
114 views

Hi,

I need to test if a row is selected in a Telerk Grid using Telerik Test Framework. Below is the snippet of code I'm trying. 

  public bool HasRowSelected(IFrameworkElement row)
  {
      return row.Find.ByName<Rectangle>("BackgroundBorder").Opacity > 0;
  }

However it doesn't seem to work. Could you please suggest how can I achieve this? Attached is the sample grid.

Boyan Boev
Telerik team
 answered on 01 Aug 2016
3 answers
276 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
698 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
92 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?