Telerik Forums
Test Studio Forum
1 answer
108 views
Hello,

I'm new to the Web UI testing and Telerik software.

I've a few questions regarding the FileUpload and HTML pop-up window.

Here is how I've been recording with Firefox.
1) I've navgiate to a page with 'https://testingthis.com
2) this page has the an attached-file button, which open the pop-up window with https://testingthis.com/upload/fileupload/12345
**this 12345 may change each time doing the test because my colleagues may be attaching files anytime" -> may be 2 min later, it could change to 12347... etc

My issues are
a) When the attached file is clicked and the popup window comes up, the recording does not work on any elements on the pop up page.
b) because the last part of pop-up URL changes, I cannot hard-code it by navigating to that page. I have done that by manually navigating the pop-up URL and tested with the file upload Dialogue and found it working INSTANTLY. since no one has used up my allocation, I find it working.

Anyway to solve this issue?

Thanks in advance for your help.

Ivaylo
Telerik team
 answered on 11 Nov 2013
8 answers
247 views
Just ran into this today and was pretty sure I had this working on another test, though it failed when I tried running said test.
Found some simple code from another support post and trimmed it down for a test case.
Telerik version is 2012.2.1527.0
The firefox http client shows up as 2012.2.1205.0

Is this something that I would have to use a coded step for to handle FF's trickery?
In IE10 the dialog is handled.

In FF20 when the dialog pops up, it sits there and times out.

Here is some example html/js that I used for a test case on the simple confirm handler.
<html>
<head>
<script type="text/javascript">
<!--
function confirmation() {
    var answer = confirm("dialog test!")
}
//-->
</script>
</head>
<body>
<form>
<input type="button" onclick="confirmation()" value="Test the button">
</form>
</body>
</html>

Ivaylo
Telerik team
 answered on 11 Nov 2013
1 answer
48 views
Hello,

What would be the best way to pass a collection of objects (both native data such as strings, ints, etc and custom objects) from one test to another?

I was considering using GetExtractedValue()/SetExtractedValue().  Since both of these take an 'object' as a parameter, I was wondering if I it would be possible to pass it a collection object (such as Array, List, etc) cast to 'object' if necessary - the called test would then 'uncast' it back to the collection object for use.  Two issues with that approach:
a) Still researching how to cast and uncast
b) It is probably not type-safe

Please let me know if there is a better way to accomplish what I need.

Please note that I am on TS 2012.2.1420.0 and developing tests in VS 2010 (C#/.NET) with the Test Studio Addin.

Thanks,
Shashi
Boyan Boev
Telerik team
 answered on 11 Nov 2013
6 answers
136 views
Hi everyone,

I have my project under TFS source control and every time when I do a check-in inside TestStudio at the project level all the results from previous execution are marked to be checked in.

Since TestStudio documentation on Check-in guidelines states that the tests Results folder shouldn't be under source control, this folder doesn't exist in my TFS TestStudio project. 

What I would like to know is if there is a way from me to exclude the Results folder from appearing on the items list to be check-in, because every time I want to do a global check-in (project level) I must uncheck all the result file that I have for every TestList that I've ran.

Thank you,
Luis
Boyan Boev
Telerik team
 answered on 08 Nov 2013
3 answers
62 views
Hi there,

Today I met a strange thing using Telerik, here is the step:
Scenario 1:
1. Go to http://wwwqa.shoppingtools.ford.com/FindADealer
2. Input "69210" in the zip code and search, you can see 3 items in the results.
3. Then find the link "View Additional Disclosures" worked. 
4. hover on it, -----worked.(Can see the mouse hover on the element)

Scenario 2:
1. Go to http://wwwqa.shoppingtools.ford.com/FindADealer
2. Input "48152" in the zip code and search, you can see 6 items in the results.
3. Then find the link "View Additional Disclosures" -worked.
4. hover on it, -----Doesn't work
Telerik can find the element of link "View Additional Disclosures", but when hover on, observe the mouse in the middle of the results area, then I tried element.scrolltovisible before hover on, still not work

There is no difference for the page element between 3 results and 6 results,can you help have a look?
Thanks in advance,
Fion
Boyan Boev
Telerik team
 answered on 08 Nov 2013
3 answers
117 views
I want to use the test studio for automated tasks because it is great and can be used or that. With the previous version I achieved that I could manually schedule tests (without the Test Studio (!)) and run the tests on the execution server. However with the new version everything is different. That's not a big deal but these are the breaking changes:

1) Changed API from web services to REST services
2) Database has completely changed
3) No documentation for this private API

It would be really, really great if the API was actually documented and available for everyone. Now it is just too complex. I now try to automate by using the same reference assemblies that the test studio uses, but I get a lot of issues:

1) Loader does not load types automatically
2) Tests are not being scheduled (but maybe I have a few loops to jump through)

What I basically want to achieve is to create a generic test project (test list). Then when I need to run an automated task I want to create a copy of that project, put it on a shared location (network share) and customize it for the specific action. Then I want to manually schedule the test execution on the first available execution runner.

In short my question is: please provide a public API so people can schedule automated tests (for example, after every build I want to schedule a UI test (automatically)).
Boyan Boev
Telerik team
 answered on 08 Nov 2013
1 answer
76 views
Does Test Studio support locating elements by xpath last() function?
For example:
I have Silverlight app with RayGrid and I want to use the last() function to select the last row index from the table.
/RayGrid/rowspanel/cellspanel[last()]

Is it possible in TS 2013 standalone version?
Velin Koychev
Telerik team
 answered on 08 Nov 2013
2 answers
63 views
I have recently moved my Test Studio application to a new laptop. For some reason Test Studio goes to "Not Responding" page grays out and does nothing. This happens simply opening the application, navigating the application, and when I try to run a test. Sometimes it will become responsive again after a few minutes and other time I have to force close. I have more than enough ram (8GB) and an equivalent processor (Intel Core i7 @ 2.2 GHz). Why is this happening?

Here is the error log when I try and run a test as well:

------------------------------------------------------------
'11/7/2013 8:42:30 AM' - Using .Net Runtime version: '4.0.30319.17929' for tests execution.
'11/7/2013 8:42:30 AM' - Starting execution....
'11/7/2013 8:42:30 AM' - Detected a Silverlight Test. Setting EnableSilverlight=True
'11/7/2013 8:42:32 AM' - Detected custom code in test. Locating test assembly: Manual Accounting Entries.dll.
'11/7/2013 8:42:32 AM' - Failure detected during execution. Details:
------------------------------------------------------------
'11/7/2013 8:42:32 AM' - System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'11/7/2013 8:42:32 AM' - Test completed!
Boyan Boev
Telerik team
 answered on 08 Nov 2013
2 answers
115 views
Good day,

While am recording a test case, one of the steps is to connect to HTML popup loads pdf file so,,
**Record for connecting to the popup will be registered.
And when close the popup, so
**Record for closing the popup will be registered.
And when run the testcase then the step connecting to the HTML dialog will fail.
Please note that am adding wait and delay until the dialog open.

System.OperationCanceledException: Exception occurred waiting for the new browser to connect. ---> System.TimeoutException: Wait for condition has timed out at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType) at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout) at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout) --- End of inner exception stack trace -- --


Below is the Codded step:
Manager.WaitForNewBrowserConnect(https://ev.be.rshos.net/portll/report/reportShow.do?mode=show&reportId=22&module=Licene, true, 5000);



Regards,
Romio

 

Ivaylo
Telerik team
 answered on 07 Nov 2013
1 answer
79 views
Hi

In our WPF application most of the elements for entering data have no "name" attribute (using binding). Test Studio creates names like e.g. Item1Textbox. The problem is that Test Studio doesn't detect/create the same name every time. As soon as we have some changes or use the application from the build server tests fail because of this.

In HTML we have the possibility to define the identification logic but WPF doesn't allow this customization. Having e.g. the attribute Text would be good option.

Any ideas how we can overcome this?

Thanks
Arthur
Boyan Boev
Telerik team
 answered on 07 Nov 2013
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?