Telerik Forums
Test Studio Forum
1 answer
143 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
456 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
1 answer
102 views
running test lists have suddenly stopped working.
i get the attached error.

i made sure the scheduling server was connected and active. so not sure where to go form here.

also this in trace log:

05/07 14:10:21,Telerik.TestStudio.RemoteExecutor.exe(1444:9),Error] <>c__DisplayClass4.<RegisterResolver>b__1() : EXCEPTION! (see below)
     Situation: Exception trying to resolve dependency: Microsoft.TeamFoundation.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
     Outer Exception Type: System.IO.FileNotFoundException
     Message: Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
     HRESULT: 0x80070002 (Official ID (if app.) = 2147942402, Error Bit = FAILED, Facility = FACILITY_WIN32, Code = ERROR_FILE_NOT_FOUND)
     Call Stack:
          at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
          at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
          at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
          at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
          at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
          at System.Reflection.Assembly.Load(String assemblyString)
          at ArtOfTest.Common.BaseDependencyLoader.<>c__DisplayClass4.<RegisterResolver>b__1(Object o, ResolveEventArgs e)
Ivaylo
Telerik team
 answered on 12 May 2014
4 answers
77 views
We have an app. that sometimes shows a pop-up message on startup (it gives some information to user only when needed)
I have created a test named "accept startup message if any" like the following:

IF (Wait for Exists 'RadMessageBoxWndRadMessagebox') THEN
   Click BtnOkRadbutton
ELSE


I have configured verification timeout to 2 seconds.
This test works perfectly when the message is shown and, when not too, as it only takes the 2 seconds to continue to next step.

I thought it would be nice to add this "accept startup message if any" test as the first step in other tests, in order to reuse it and avoid coding the "IF" every time before starting the test itself.

The problem is that if I use this test as a step in other test, it does not have the same behaviour. In this scenario, if the message appears, it works perfectly, but if the message box does not appear, the test does not follow next step until "CLIENT (FRAME/WINDOW) READY TIMEOUT" is reached (configured in Debugger options or in configuration file), which is a long time. I have tried to configure the test as step with the "WaitOnElementsTimeout" to 2 seconds also with no results.

Am I missing something or doing anything wrong?

Thank you in advance,

Best regards,

Joan
Joan
Top achievements
Rank 1
 answered on 12 May 2014
7 answers
1.6K+ views
How to Extract the InnerText content from the div tag and write it in an excel document?

I have a html response as given below,

<div class= "my class" id= "myid" style = "mystyle">
   Account has been successfully created. Your Account number is 12345


Now from the above div tag i want to extract innertext content "12345" and store it in an external excel file. Please guide me in this.
Boyan Boev
Telerik team
 answered on 12 May 2014
6 answers
104 views
Hi i am having some difficulties recording 4th window, i made those steps to search window by partial title and url, i don't think it is mater, when i come to 4th window it stops to record is it a limitation?
Konstantin Petkov
Telerik team
 answered on 10 May 2014
1 answer
92 views
I'm evaluating Test Studio as a potential automation and load tool as we build out our Quality Engineering team.  My first simple login test runs successfully on IE, Chrome, Safari and Firefox.  Although the test results state success in FireFox, in actuality it simply loads the login page, cycles through the actions without actually completing them, closes the window and prints the successful run log (see below, with sensitive data replaced).

I wrote the test with element validations as this was the best way to get it working in both IE, Chrome and Safari.  When run in debugger mode with annotations it appears that FireFox places the elements in a different location than the others.

Any help would be greatly appreciated.  We need these tests to run on all browsers if at all possible.

Overall Result: Pass
------------------------------------------------------------
'5/7/2014 11:31:11 AM' - Executing test: 'Keylight Login 2', path: 'Test Modules\Keylight Login 2.tstest.'
'5/7/2014 11:31:11 AM' - Using .Net Runtime version: '4.0.30319.18444' for test execution. Build version is '2014.1.410.0'.
'5/7/2014 11:31:11 AM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'5/7/2014 11:31:13 AM' - Using 'FireFox' version '28.0' as default browser. 
'5/7/2014 11:31:14 AM' - 'Pass' : 1. Navigate to : 'EXAMPLE URL'
'5/7/2014 11:31:15 AM' - 'Pass' : 2. Verify element 'BodyContentBodyContentUsernameWrapperSpan' 'is' visible.
'5/7/2014 11:31:15 AM' - 'Pass' : 3. Desktop command: LeftClick on BodyContentBodyContentUsernameText
'5/7/2014 11:31:19 AM' - 'Pass' : 4. RadInput('ctl00_ctl00_BodyContent_BodyContent_Username_wrapper'): value 'EXAMPLE USERNAME' entered.
'5/7/2014 11:31:20 AM' - 'Pass' : 5. Verify element 'BodyContentBodyContentPasswordPassword' 'is' visible.
'5/7/2014 11:31:21 AM' - 'Pass' : 6. Desktop command: LeftClick on BodyContentBodyContentPasswordPassword
'5/7/2014 11:31:22 AM' - 'Pass' : 7. RadInput('ctl00_ctl00_BodyContent_BodyContent_Password_wrapper'): value 'EXAMPLE PASSWORD' entered.
'5/7/2014 11:31:23 AM' - 'Pass' : 8. Verify element 'BodyContentBodyContentLoginButtonInputSubmit' 'is' visible.
'5/7/2014 11:31:24 AM' - 'Pass' : 9. Desktop command: LeftClick on BodyContentBodyContentLoginButtonInputSubmit
'5/7/2014 11:31:27 AM' - 'Pass' : 10. Wait for '3000' msec.
------------------------------------------------------------
'5/7/2014 11:31:27 AM' - Overall Result: Pass
'5/7/2014 11:31:27 AM' - Duration: [0 min: 13 sec: 830 msec]
------------------------------------------------------------
'5/7/2014 11:31:30 AM' - Test completed!



Boyan Boev
Telerik team
 answered on 08 May 2014
1 answer
83 views
Hello,

I am evaluating Test studio for our application which is partly web-based and partly desktop-based(WCF control).

The initial login is via web and the desktop based part is launched via the web interface. The other option to launch the desktop app is via command line.

I tried to launch the desktop part by configuring to run the exe, but that is not possible since some values are passed while invoking the desktop part (via web or command line).

I wanted to know whether this is possible in Test-studio.
Ivaylo
Telerik team
 answered on 08 May 2014
1 answer
106 views
My question is about nested data-driven tests. I have a testing scenario that involves using a data set that iterates a test where each iteration will have different sets of data to iterate through in turn.  I’ve gotten the tests to run, but with some unexpected behavior.  The middle test will run more iterations than there are entries in the data, and only the first set of data is used (repeatedly) in the inner test.  Is there some way to do this that I’m missing?  Would I be able to accomplish this using if…else in the inner test?  Thanks.

See attached doc for details.


Boyan Boev
Telerik team
 answered on 08 May 2014
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?