Telerik Forums
Test Studio Forum
5 answers
404 views
Hello,

What exactly is the purpose of the Compare Mode property of a Page? I saw that there are several options in the dropdown but I am not sure as to how to use each. Please help.

Best Regards,
Kristine
Ivaylo
Telerik team
 answered on 03 Sep 2015
5 answers
159 views

Hi guys, I dont quite understand the problem below.

I has a hyperlink element in HTML like this (telerik calls HTMLAnchor).

<a href="#" id="btnSubmit" >Submit</a>​

Now, what I all need that I want to find the <a> element by using HTMLAnchor, then click on it.

Here is my vb code in my Telerik script

~~~~~

Dim btnSubmit As ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor
Dim alertDialog__1 As AlertDialog = AlertDialog.CreateAlertDialog(ActiveBrowser, DialogButton.OK)
alertDialog__1.HandlerDelegate = New DialogHandlerDelegate(AddressOf MyCustomAlertHandler)
Manager.DialogMonitor.AddDialog(alertDialog__1)

ActiveBrowser.Window.SetFocus
ActiveBrowser.RefreshDomTree
btnSubmit=Manager.ActiveBrowser.Find.ById("btnSubmit")
Assert.IsNotNull(btnSubmit,"Cannot find the Submit button")
btnSubmit.Click 
alertDialog__1.WaitUntilHandled(50000)​

 ~~~~~

BUT, the problem is that btnSubmit is NULL. Look like it can not find the element

Log file:

Value of type 'ArtOfTest.WebAii.ObjectModel.Element' cannot be converted to 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor'.

Any suggestion for me, guys.

Thanks



​ 

 

Ronan
Top achievements
Rank 1
 answered on 03 Sep 2015
2 answers
176 views

Hi all,

 I am trying to execute using "settings" option in ArtofTest.Runner commandline.

I followed the steps as mentioned in http://docs.telerik.com/teststudio/testing-framework/write-tests-in-code/intermediate-topics-wtc/settings-and-configuration-wtc/app-config-file

I created a xml file, renamed it as test.dll.config and executed through commandline.I am getting one error

 "Load project: The settings file is missing in the 'C:\SmokeTest\bin' Please set the root path.

1) Am i doing something wrong here?
2) Do i need to add Manager mgr = new Manager(true); somewhere in code? If so where should i call? The first part which gets initialized?
3) Do i need to use settings.aiis also along with this xml?

 

Kindly let me know.
Thanks,
VVP​

Cody
Telerik team
 answered on 02 Sep 2015
9 answers
519 views

Hi,

We are planning to execute scripts via commandline (ArtOfTest.Runner.exe). Hence we needed to know generation of log files .

I saw there is an option for exporting results /excel /html/trx in UI. Anything similar in commandline.?

I saw this http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/external-log-file

I have 2 questions regarding article on above link.

1) Do we have to include the function in each and every test script file.? Or is it ok to put as common function and call?

2) How can i pass Test Result from a script to a common function.

 

Thanks,

VVP

Peter
Telerik team
 answered on 02 Sep 2015
9 answers
305 views
I want to make sure I'm using the BaseURL function correctly before I spend a lot of time recording test scripts.  We have three main environments we'll want to hit when we execute tests.  Two of them are on the same domain, and the production environment is on an entirely different domain.
Development: https://web.domain1.com/AppDEV
Test: https://web.domain1.com/AppTEST
Production: https://tools.domain2.com/AppPROD

I'll be recording all tests against the DEV site.  Right now, I have https://web.domain1.com/AppDEV in the BaseURL for the project.  Should have I have only put https://web.domain1.com ? Or??  Thanks for any help!

~Shelly
Ivaylo
Telerik team
 answered on 02 Sep 2015
7 answers
311 views
I am having a big issue with scheduled test lists.  They are not running the latest version of the tests within it regardless of if I upload latest, run remotely or schedule a one off run.  There are even times where I will delete a test case and it will still be run in the scheduled run this is most troubling and highly annoying.  I would expect that it would pull the latest and when I upload the latest that will be used and this is apparently not the case.  When I run locally it runs fine but when I try to execute remotely its low percentage that it actually runs what I expect it to run.  I have even monitored project folders while tests are running and I see weird things like old test lists in the test list folder that I have deleted weeks ago.  

How are the scheduled runs stored?  How is it retaining old test cases to run even when the case has been deleted from the test? Why does uploading latest not actually upload the latest?

I am using version 2014.
Ivaylo
Telerik team
 answered on 02 Sep 2015
1 answer
82 views

Hello, 

So I have an web application that has a page that uses Silverlight. 

In my test, I navigate to this page that has the silverlight in it. 

I want to know if there is a way to detect if the silverlight section of the page has fully loaded. 

I would prefer not to use an Execution Delay.

Boyan Boev
Telerik team
 answered on 01 Sep 2015
3 answers
90 views

When executing the Telerik Test Studio Runtime 2015.2 install package, I receive the following error:

You must have Administrative rights on this machine to install Telerik Test Studio Runtime.  Setup will now exit.

 

My domain user account is a member of the local machine administrators group.  I created a local administrator account and the install fails the Microsoft SQL Server 2008 R2 install process.

 

This is the only software package that does not correctly detect my domain user as part of the local administrators group.

 

Thanks,

Randy Erickson

Boyan Boev
Telerik team
 answered on 28 Aug 2015
4 answers
109 views

Hi,

I'm trying to figure out if there is a possibility to use data in XML in the way it is used if I would set local data in the test case. For example I would set two rows in local data and when I would run this test case, both data would be used in itterations. Could I achieve something like this using XML?

I'll try to write down the test case:

1. login

2. select first value from dropdown (data driven test step)

3. check if the value has been selected

Local data setup:

indexValue

1

2

 

How could I write this using XML? With code only or is it possible with XML structure?

BR, Jurij

Boyan Boev
Telerik team
 answered on 28 Aug 2015
9 answers
948 views
Hello Everyone, this is my first post so be gentle.

I'm trying to automate a set of pages where a user that is already in the system can create requests to add other users.  Another user would then approve the request and create a username for that user.  There is some data that needs to be shared between those accounts (The tracking number request).  I was wondering if there was a way to store and edit this data during automated test execution where I can, perhaps, edit this variable from a scripted step or something of that nature; where in one test I could set the variable in one of my scripted steps and then in another test I could access that variable so that I can populate a field with that data.

Thanks for any help that can be provided.
Boyan Boev
Telerik team
 answered on 27 Aug 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?