Telerik Forums
Test Studio Forum
1 answer
100 views
Hi,
I am a newbie to Test Studio. I am hitting a button on Window1 that opens up a new Window2. The URL for window2 is different everytime so the test case fails as it is trying to navigate to the already recorded URL. 
I am using record and play. Kindly help.

P.S:
The initial part of the URL always remains the same except the last 4 alphanumeric digits. Appologez if I am giving less info.
Boyan Boev
Telerik team
 answered on 26 May 2014
3 answers
145 views
I have many tests in which I have to login to our platform.  Due to passwords changing I created a Test as a Step for the username and password steps which I reuse in all tests when I need to login.  The theory was I could then just update the password in the test as a step and it would matriculate to all other tests.  Individually it did so but our Scheduled Test Lists did not pick up the change and thus failed.  

This seems similar to the earlier issue of test list not getting update with just modifying a test case it just a variation of the same.  I am already running the 2013.2.1524 internal build to get around other issues.  Do I need to just redo my test list to get the changes to take hold?  
Ivaylo
Telerik team
 answered on 23 May 2014
9 answers
273 views
Hi There,

For image comparison, I saw a piece of code here:
System.Drawing.Bitmap expectedbmp = new System.Drawing.Bitmap("myExpected.png");

HtmlImage img = Find.ById<HtmlImage>("myImageId");
System.Drawing.Bitmap actualbmp = img.Capture();

ArtOfTest.Common.PixelMap expected = ArtOfTest.Common.PixelMap.FromBitmap(expectedbmp);
ArtOfTest.Common.PixelMap actual = ArtOfTest.Common.PixelMap.FromBitmap(actualbmp);
Assert.IsTrue(expected.Compare(actual, 5.0));

My questions are :
1. How to import the System.Drawing.Bitmap to Telerik? (Also other files)
2. Where is the path for "myExpected.png", should I use "C:\myExpected.png" or just put under the project folder using "myExpected.png"

Thanks
Waylon
Ivaylo
Telerik team
 answered on 21 May 2014
5 answers
119 views
I am evaluating the trial version, and I am unable to run a capture from my current version of firefox.  I have all the Telerik add-ons enabled and all other add-ons disabled.  Each time I run a capture, it comes back with 0 results.

Ideas?

Thanks
Steve
Steve
Top achievements
Rank 1
 answered on 16 May 2014
2 answers
70 views
Hi,

I have upgraded from 2012.2.1420 to 2014.1.410 and encountered the following error message:

[05/07 13:56:31,Telerik.TestStudio.exe(12476:8),TestStudio] TestUpgrader.ConvertTestToJson() : Could not load test 'C:\...\...\TestName.aii' for upgrade.
[05/07 13:56:31,Telerik.TestStudio.exe(12476:8),TestStudio] SerializerService.<GetSettings>b__2() : Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
[05/07 13:56:32,Telerik.TestStudio.exe(12476:8),ProjectModel] TestFileHandler.LoadFromDisk() : EXCEPTION! (see below)
     Situation: Unable to load test 'C:\...\...\TestName.aii'
     Outer Exception Type: System.Runtime.Serialization.SerializationException
     Message: Error in line 2 position 69. Element 'http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0:Step' contains data from a type that maps to the name 'http://schemas.datacontract.org/2004/07/Telerik.WebAii.Design.Translators.Xaml.TreeListView:RadTreeListViewIntegerPropertyVerification'. The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver or add the type corresponding to 'RadTreeListViewIntegerPropertyVerification' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.
     HRESULT: 0x8013150C (Official ID (if app.) = COR_E_SERIALIZATION, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5388)
     Call Stack:
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
          at ReadAutomationStepFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )
          at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
          at ReadAutomationStepListFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString , CollectionDataContract )
          at System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
          at ReadWebAiiTestFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )
          at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
          at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)
          at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
          at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
          at System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader)
          at ArtOfTest.WebAii.Design.ProjectModel.TestFileHandler.LoadFromXml(String normalizedPath)
          at ArtOfTest.WebAii.Design.ProjectModel.TestFileHandler.LoadFromDisk(String pathToFile, Boolean autoLoadTypes, FileOpenResult& result) 

Once I started looking at all of the tests that failed during the upgrade I found the common recorded step that was causing the issue:
radtreelistview(EncNavigationTreeRadtreelistview): root item count 'Equal' '0'.

***I am wondering if this is a bug or if this item is no longer valid and the upgrade is supposed to fail with the above message.












JT
Top achievements
Rank 1
 answered on 16 May 2014
1 answer
149 views
Hi,
we have some test lists which have been scheduled to run on a remote execution server. I would like to remove these from the scheduler however the project that originally created the test lists has since been deleted. Is there a way to remove these 'phantom' scheduled tests ?

Thanks Tom.
Faten
Telerik team
 answered on 16 May 2014
1 answer
133 views
Assume I have 5 licences for Test Studio (100 users for each). I need execute tests for 500 users. Assumption is that I use the 5 machines (100 users on each). It can be done manually by execute test for 100 users on the each computer. But if I want manage test from one station, can I use the users from other licences, or I have to by additional VU for specific license? Additional I have to buy four Runtime licences if I want to execute test from one machine (on the other four machines, test will be called)?
Cody
Telerik team
 answered on 15 May 2014
5 answers
157 views
I have add CSV Data source and Bound it to the Test. But when I edit the user profile and select the HTTP Get request I don't see anything would allow me to change  the URL http://services2.somedomain.dev/crmwebservice/cities/1 to something like http://services2.somedomain.dev/crmwebservice/cities/$Data. The documentation covers 2012 versions. Also note I have the trial version and I hope you haven't crippled it.
 
Cody
Telerik team
 answered on 14 May 2014
1 answer
139 views

Hi
   I generated some script for our application where i selected some sub menus.but once playing it shows the following error that the item is hidden.


Failure Information:
~~~~~~~~~~~~~~~
Cannot perform an action on the item while hidden. Please make sure it is visible first!
InnerException:
System.InvalidOperationException: Cannot perform an action on the item while hidden. Please make sure it is visible first!
   at Telerik.WebAii.Controls.Html.RadMenuItem.Navigate(Boolean ensureShouldNavigate)
   at Telerik.WebAii.Design.Translators.Html.Menu.MenuItemActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

Is there any other  way we can record such  hidden item with  telerik

Thanks
Ivaylo
Telerik team
 answered on 14 May 2014
10 answers
452 views
Hi,

We're trying to share tests across a team and are finding that image verification is failing on some steps.

In some cases, we have to use image verification as we're testing a silverlight charting application with custom controls and cannot verify the data any other way. Any changes to the resolution of the browser window directly affects the display of these controls.

Thus, we need a way to set the browser window size/resolution consistently across our tests.

We could use ActiveBrowser.Window.Maximize();however, our screen sizes differ (laptops, 2nd monitors etc.).

What we need is something like ActiveBrowser.Window.SetResolution(1024,768), does something like that exist?

Thanks,
Paul.


Cody
Telerik team
 answered on 12 May 2014
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?