Telerik Forums
Test Studio Forum
1 answer
189 views
Hi. I have just started evaluating Test Studio to test our WPF application. Our application title contains the application version number and therefore changes after each upgrade. I created a test aginst version 1 and then upgraded the application to version 2, but when I run the test now it is still looking for controls in application v1. e.g. the PrimaryTarget field contain the application title with version 1. Is there a way to make this work? Thanks.
Ivaylo
Telerik team
 answered on 30 Jan 2015
1 answer
64 views
Has anyone implemented any test scripts utilizing credit card processing with authorize.net?
Cody
Telerik team
 answered on 30 Jan 2015
4 answers
167 views
Hi

I'm working on a project that requires me to check figures in various reports (Silverlight and SSRS).

I have a dashboard SSRS report that shows various subreports, for example Top 10 Users, which shows names and spend(£). I would like to access those 10 names and their respective figures and then run a SQL query to check they match.

I have set up the SQL connection and that is pulling the data out that I need, but I'm struggling to work out the best solution to capturing the data from the report.

Can you please help?

Many thanks

Andrew
Cody
Telerik team
 answered on 30 Jan 2015
4 answers
75 views
Hi.
I've downloaded free telerik test framework.
and try to do the following with silverlight application:


var slApp = ActiveBrowser.SilverlightApps()[0];
var menu = slApp.Find.ByExpression(new XamlFindExpression("TextContent=Administration", "XamlTag=textblock"));
menu.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 30, 30, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(0)));

Actually, i had done it after i installed trial version of test studio to see if it is possible to click there.

From Test studio it works fine, but from my test it finds element, but doesn't want to click.
it there any solution for that?

Thanks!
Boyan Boev
Telerik team
 answered on 29 Jan 2015
5 answers
146 views
Hi,

I have a requirement where I have to verify the each content on Kendo grid and then click on it.All the contents in this grid is auto post values,We are able to modify the dose field alone.

This grid was developed by using kendo gird, I can't be able to verify it even after recording it and tried little c# codes :

KendoGrid grid = ActiveBrowser.Find.ById<KendoGrid>("grid");

foreach (KendoGridDataItem row in grid.DataItems)
{
 if (row.Cells[1].InnerText.Contains("250:00"))
  {
   ConfirmDialog cd = new ConfirmDialog(ActiveBrowser, DialogButton.OK);
   Manager.DialogMonitor.AddDialog(cd);
   Manager.DialogMonitor.Start();

   row.Cells[1].MouseClick();

   cd.WaitUntilHandled();
   Manager.DialogMonitor.RemoveDialog(cd);
  }
}

- Above Coded step also not fulfilled my scenario.

These are the following scenarios,I need to verify :


Scenario 1 :

Need to verify the respective Time,Dose's are posted correctly while at the first time of grid open.

Scenario 2 :

Whenever i am changing the value of dose field in grid,it should affect this parent control(dose).


Please,Help me on this.
Boyan Boev
Telerik team
 answered on 29 Jan 2015
1 answer
159 views
Hello,

I was looking through the Test Studio online documentation and found a reference to a "Test Runner" UI.  There's a download link in the documentation page, but it seems to be broken.

http://docs.telerik.com/teststudio/features/test-runners/telerik-test-runner

Is this tool still available?

Thanks,
Tim
Ivaylo
Telerik team
 answered on 29 Jan 2015
12 answers
173 views
Hello
Telerik Team, 

I am facing some issues which executing test studio tests from MTM.

We currently have a UI test suite with about 400+ test cases. We have been facing numerous issues when we try to execute the test studio tests from MTM.

Though all the tests are working correctly when executed locally, I get the below errors from MTM. Strangely, all the tests are in the same solution and same
.dlls. Also, the 1st step of logging into the environment is the same in all of the 3 tests, yet they run to different point through MTM and then fail. I have
verified that all the tests are present in the build folder along with the correct association. 

Error 1:

'1/9/2015 1:46:39 PM' - Executing test: 'abc', path: ......'
'1/9/2015 1:46:39 PM' - Using .Net Runtime version: '4.0.30319.34014' for test execution.
Build version is '2014.4.1211.0'.

'1/9/2015 1:46:39 PM' - Starting execution....
'1/9/2015 1:46:44 PM' - Detected custom code in test. Locating test assembly:….
'1/9/2015 1:46:44 PM' - Failure detected during execution. Details:

------------------------------------------------------------

'1/9/2015 1:46:44 PM' - System.IO.FileNotFoundException: Unable to find the code behind assembly. Please make sure you have compiled your code
behind without errors before attempting to execute the test. 

Error 2:

'1/9/2015 1:43:09 PM' - Executing test: 'efg', path: '.....'

'1/9/2015 1:43:09 PM' - Using .Net Runtime version: '4.0.30319.34014' for test execution.
Build version is '2014.4.1211.0'.

'1/9/2015 1:43:09 PM' - Starting execution....

'1/9/2015 1:43:13 PM' - Detected custom code in test. Locating test assembly: ….

'1/9/2015 1:43:13 PM' - Assembly Found: ….

'1/9/2015 1:43:13 PM' - Loading code class: 'Class;.

------------------------------------------------------------

------------------------------------------------------------

'1/9/2015 1:43:13 PM' - Enabling Html Popup Tracker. Test expecting Popups.

'1/9/2015 1:43:13 PM' - Using 'InternetExplorer' version '11.0' as default browser.

'1/9/2015 1:43:13 PM' - 'Fail' : 1. Execute test '…'

InnerException:

System.IO.FileNotFoundException: Unable to find test'….tstest'

   at
ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(String
relativeTestPath)

   at
ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ExecuteTestActionDescriptor.Execute(IAutomationHost
autoHost, TestAsStepResult result)

   at
ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

------------------------------------------------------------

'1/9/2015 1:43:13 PM' - Detected a failure. Step is
marked 'ContinueOnFailure=False' aborting test execution.

------------------------------------------------------------

'1/9/2015
1:43:13 PM' - Overall Result: Fail

'1/9/2015
1:43:13 PM' - Duration: [0 min: 0 sec: 171 msec]

------------------------------------------------------------

'1/9/2015
1:43:13 PM' - Test completed! 

Error 3:

It fails to find an image on the UI, though the image exists. 

------------------------------------------------------------

'1/9/2015 10:08:10 AM' - Executing test: 'Test3', path: 'Test3.tstest.'

'1/9/2015 10:08:10 AM' - Using .Net Runtime version: '4.0.30319.34014' for test
execution. Build version is '2014.4.1211.0'.

'1/9/2015 10:08:10 AM' - Starting execution....

------------------------------------------------------------

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Enabling Html Popup Tracker. Test expecting Popups.

'1/9/2015 10:08:15 AM' - Using 'InternetExplorer' version '11.0' as default browser.

'1/9/2015 10:09:28 AM' - 'Fail' : 1. Execute test 'Test3':Overall Result: Fail

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Detected custom code in test. Locating test assembly: ….dll.

'1/9/2015 10:08:15 AM' - Assembly Found:….dll

'1/9/2015 10:08:15 AM' - Loading code class: ….

------------------------------------------------------------

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Enabling Html Popup Tracker. Test expecting Popups.

'1/9/2015 10:08:15 AM' - Using 'InternetExplorer' version '11.0' as default browser.

'1/9/2015 10:08:15 AM' - 'Pass' : 1. Execute test 1:Overall Result: Pass

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Detected custom code in test. Locating test assembly:….dll.

'1/9/2015 10:08:15 AM' - Assembly Found:….dll

'1/9/2015 10:08:15 AM' - Loading code class: ….

------------------------------------------------------------

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Enabling Html Popup Tracker. Test expecting Popups.

'1/9/2015 10:08:15 AM' - Using 'InternetExplorer' version '11.0' as default browser.

'1/9/2015 10:08:15 AM' - 'Pass' : 1. Set Environment Type

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Overall Result: Pass

'1/9/2015 10:08:15 AM' - Duration: [0 min: 0 sec: 0 msec]

------------------------------------------------------------<<<
Test-as-Step '

'1/9/2015 10:09:28 AM' - 'Fail' : 3. Execute test ….tstest' log starts:Overall Result:
Fail

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Detected custom code in test. Locating test assembly:%%%.dll.

'1/9/2015 10:08:15 AM' - Assembly Found:...dll

'1/9/2015 10:08:15 AM' - Loading code class: ….

------------------------------------------------------------

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Enabling Html Popup Tracker. Test expecting Popups.

'1/9/2015 10:08:15 AM' - Using 'InternetExplorer' version '11.0' as default browser.

'1/9/2015 10:08:28 AM' - 'Pass' : %%%- 'Pass' : 1. %%% log starts:Overall Result: Pass

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Detected custom code in test. Locating test assembly: ….dll.

'1/9/2015 10:08:15 AM' - Assembly Found: ….dll

'1/9/2015 10:08:15 AM' - Loading code class: ….

------------------------------------------------------------

------------------------------------------------------------

'1/9/2015 10:08:15 AM' - Enabling Html Popup Tracker. Test expecting Popups.

'1/9/2015 10:08:15 AM' - Using 'InternetExplorer' version '11.0' as default browser.

'1/9/2015 10:08:23 AM' - 'Pass' : 1. Navigate to : ' ###

'1/9/2015 10:08:28 AM' - 'Pass' : 2. Wait for '5000' msec.

'1/9/2015 10:08:28 AM' - 'Pass' : 3. Handle '...' dialog. - DataDriven:
[$(LoginID)][$(Password)][$(WaitInterval)]

------------------------------------------------------------

'1/9/2015 10:08:28 AM' - Overall Result: Pass

'1/9/2015 10:08:28 AM' - Duration: [0 min: 13 sec: 84 msec]

------------------------------------------------------------<<<
Test-….tstest' log ends.

 

<<<
Step log ends.'1/9/2015 10:09:28 AM' - 'Fail' : 2. Execute test 'HandleDialog'

….tstest'
log starts:Overall Result: Fail

------------------------------------------------------------

'1/9/2015 10:08:28 AM' - Detected custom code in test. Locating test assembly: ....dll.

'1/9/2015 10:08:28 AM' - Assembly Found: ….dll

'1/9/2015 10:08:28 AM' - Loading code class: ….HandleDialog'.

------------------------------------------------------------

------------------------------------------------------------

'1/9/2015 10:08:28 AM' - Enabling Html Popup Tracker. Test expecting Popups.

'1/9/2015 10:08:28 AM' - Using 'InternetExplorer' version '11.0' as default browser.

'1/9/2015 10:08:28 AM' - 'NotRun' : 1. Wait for '5000' msec.

'1/9/2015 10:09:28 AM' - 'Fail' : 2. Wait for element 'Image'
'is' visible.

------------------------------------------------------------

Failure
Information:

~~~~~~~~~~~~~~~

Unable
to find the target host (Browser/SilverlightApp) to locate an element. Failure:
Waiting for frame
'[Frame:id=InlineDialog_Iframe,name=InlineDialog_Iframe,src=^/_forms/navtour/dlg_navtour.aspx,UseQuery:False]'
timed out. Error: Wait for condition has timed out

InnerException:

System.Exception:
Unable to find the target host (Browser/SilverlightApp) to locate an element.
Failure: Waiting for frame
'[Frame:id=InlineDialog_Iframe,name=InlineDialog_Iframe,src=^/_forms/navtour/dlg_navtour.aspx,UseQuery:False]'
timed out. Error: Wait for condition has timed out

  
at
ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost
host, AutomationDescriptor descriptor, Int32 timeout)

  
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

------------------------------------------------------------

'1/9/2015
10:09:28 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False'
aborting test execution.

------------------------------------------------------------

'1/9/2015
10:09:28 AM' - Overall Result: Fail

'1/9/2015
10:09:28 AM' - Duration: [1 min: 0 sec: 310 msec]

Please could you help me in debugging this issue? Why is it that it runs until a certain point in the 3rd case, and fails in the 1st and 2nd case? Even though
the initial steps are the same?  

Also, I'm not sure why it fails to find the image when run through MTM, and works fine locally. Am I missing something?
 

Thanks,

Niharika

 


Ivaylo
Telerik team
 answered on 28 Jan 2015
3 answers
107 views
Hi,

  In my project I am using multiple Excel sheets in the Data folder.
 
  So I have inserted the Excel sheets in different folders inside the Data Folder.

  But when I used to bind the excel sheet against the tests, the folder or Excel sheets was not displayed

  Is it Possible to create New Folders in Data Folder?

  If it so means, suggest me How to bind excel sheet against the tests?

  Herewith I have attached you the screenshot..
Ivaylo
Telerik team
 answered on 27 Jan 2015
1 answer
68 views
Hi,

Is there an option to turn off the alphabetical sorting that automatically happens when creating new folders or tests?

I'd like to keep my folder structure consistent with my app menu options.

Thanks,
Ivaylo
Telerik team
 answered on 26 Jan 2015
5 answers
358 views
Hi All,

I am Unable to verify Element Visibility for IF statement.

The scenario is I am using test step(Quick Step) as "Verify if Visible"
But getting this Exception in case of failure(Element is not visible.).

'*/**/**** 1:56:17 PM' - 'Fail' : 38. IF (Verify element 'ELEMENT_Tag' 'is' visible.)
'*/**/**** 1:56:17 PM' - Unable to determine logical branch to go into. Unable to execute verification.

Failure Information:
~~~~~~~~~~~~~~~
Unable to locate element. Details: Attempting to find [Html] element using
Find logic
 (Html): [tagname 'Exact' h1] AND [TextContent 'StartsWith' Server Error in]

Unable to locate element. Search failed!

Learn more about finding elements here:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/unable-to-locate-element.aspx
------------------------------------------------------------
'*/**/**** 1:56:17 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.


Please let me know the solution ASAP.

Thanks,
Ajit.
Cody
Telerik team
 answered on 25 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?