Telerik Forums
Test Studio Forum
3 answers
141 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
269 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
115 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
67 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
145 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
126 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
153 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
131 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
446 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
3 answers
48 views
hello,

kindly advise what would be the best thing to do with this scenario:

if i do a single run of the script wherein i have to search and click on the result the outcome is a success but once i bind it to a data step #12 fails, heres the summary logdetails of the failure:

Unable to locate element. Details: Attempting to find [Html] element using
Find logic
 (Html): [tagname 'Exact' a] AND [TextContent 'Exact' P0000012319]

Unable to locate element. Search failed!

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