Telerik Forums
Test Studio Forum
1 answer
101 views
Hi,

This question is regarding the free testing framework (API).

I have the following code:

 

 

Settings settings = new Settings(BrowserType.InternetExplorer, @"C:\log.txt");

 

 

 

 

 

 

Manager manager = new Manager(settings);

 

 

 

 

manager.Start();

 

manager.LaunchNewBrowser();

 

 

 

Browser b = manager.ActiveBrowser;

 

 

b.NavigateTo(

 

"http://www.google.com");

However, it launches the browser but does not do anything thereafter. If I play with the code and modify it, I g et an exception stating wait condition timed out.

How do I make this code work (so that it will navigate to google etc)?

Thanks

 

Anthony
Telerik team
 answered on 02 Jun 2011
4 answers
150 views
Hi There,
Do we have any way to verification image load? Currently I need make sure the images are load successfully, the images can be changed, I just need make sure those images will be displayed, no 'X' there, but currently all images of the system are displayed, I have no way to record them, another question is can we use the same image for all other images?

Thanks
Waylon
Anthony
Telerik team
 answered on 02 Jun 2011
5 answers
101 views

Hi,

I was seeing Silverlight as a trial, and recording silverlight components, buttons, fields, links... was ok for our application, but now.. changing the WebUi version to 2011.1.502.0, we have problems recording the same buttons, fields, links, like we did with the other version.

We decide to buy the license, and just we are waiting for the licences information, but I'm a little worry about that, b/c with one version was ok.. and now is so difficult record actions on the site.

For example, using the "Highlighting" button when recording, when I'm over a button, the highlight appears moved to the left.. and not where the button is, so is dificult add some verification when we need.

Let me know if you need more information

Regards,

Stoich
Telerik team
 answered on 02 Jun 2011
2 answers
492 views
Hello!
I am using the latest WEBUI test studio 2011.1.502.0 trial version  (without the DEV plugin).
When i was recording there was a pop up, when I recorded to open the pop-up it recoded this step as well
"Connect to modal pop-up window : Add Copy Text Step - 1 -- Webpage Dialog"

But when I am trying to run the recorded test it is showing this error message. Can u please help me asap :)

'6/2/2011 3:15:11 PM' - 'Fail' : 9. Connect to modal pop-up window : Add Copy Text Step - 1 -- Webpage Dialog
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Capacity exceeds maximum capacity.
Parameter name: capacity
InnerException:
System.ArgumentOutOfRangeException: Capacity exceeds maximum capacity.
Parameter name: capacity
   at ArtOfTest.Common.Win32.NativeMethods.User32.GetWindowText(IntPtr hWnd, StringBuilder lpString, Int32 cch)
   at ArtOfTest.Common.Win32.Window.get_Caption()
   at ArtOfTest.Common.Win32.WindowManager.FindWindowRecursively(IntPtr parentHwnd, String caption, Boolean partialCaption, Int32 delaySearchPeriod)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.ConnectIEDialog(String caption, Int32 delaySearchPeriod)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.HtmlDialogHandlerDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
------------------------------------------------------------
'6/2/2011 3:15:11 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'6/2/2011 3:15:11 PM' - Overall Result: Fail
'6/2/2011 3:15:11 PM' - Duration: [0 min: 22 sec: 543 msec]
------------------------------------------------------------
'6/2/2011 3:15:33 PM' - Test completed!
Cody
Telerik team
 answered on 02 Jun 2011
1 answer
120 views
I am trying to verify that a field contains the current date.  I saw an example on your website where someone used code to retrieve the InnerText of an element, unfortunately I can't get to the text using the innerText field, instead the date field is available in the element attribute labled "Value".

I've tried various variations of el.attribute.item("value).value or el.attribute.item(3).value but nothing I've tried seems to work, if anyone has an example of vb code I would appreciate it.  Also, is it  possible to use telerik tools to extract the value of a field in step A and then use that extracted value in coded step B? The video on your website doesn't make it clear if extracted values can be used in code. 

Thanks again for your help
Stoich
Telerik team
 answered on 02 Jun 2011
2 answers
124 views

I executed my test without a problem, then I attempted to use the "customized code in step" option to allow me to test the date on screen against the current date.

I had trouble compiling the code I added and at the time I did not want to fuss with it, so I removed the code and then I deleted the step.  Now when I go to run the script none of the steps run and I get the following message:

------------------------------------------------------------
'5/31/2011 3:36:56 PM' - Starting execution....
'5/31/2011 3:37:02 PM' - Detected custom code in test. Locating test assembly: Lending.dll.
'5/31/2011 3:37:02 PM' - Assembly Found: X:\Akcelerant Software\Operations\QA Testing\Automation\Framework\Lending\bin\Lending.dll
'5/31/2011 3:37:02 PM' - Loading code class: 'Lending_Calclator'.
'5/31/2011 3:37:02 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'5/31/2011 3:37:02 PM' - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers.
   at Lending_Calclator..ctor()
The action that failed was:
LinkDemand
   --- End of inner exception stack trace ---
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   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(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'5/31/2011 3:37:03 PM' - Test completed!

 


Any help you could give would be appreciated.

Thanks
S
Top achievements
Rank 1
 answered on 01 Jun 2011
3 answers
125 views
Hi,

I am facing one Issue while running script from Telerik TestStudio Web UI for silverlight application . I have used Wait for Element Visibility to verify Some Text Menu after Loading URL to browser for my silverlight application.
This script is running fine With IE.
But same script when i run through Firefox and Chrome , Text Menu is visible in browser , still this Wait for Element Visibility step is not pass in both browsers. And when i stop this script in Firefox , Firefox is giving me error like "Proxy server refused Connection."

Please Help me on this.

Thanks in Advance,
Gargi
Anthony
Telerik team
 answered on 31 May 2011
7 answers
464 views
Environment is VS 2010, Win 2008 Standard 64-bit

I have opened "Visual Studio Samples" from "Telerik" --> "Test Studio 2011.1"

Solution opens fine. I double-click on DataDrivenTestBuiltInGrid.aii, it opens a window asking about trial. I click OK with trial and the file opens fine. I close the file and then try to open it again, I get the following error.

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

This is repeatable with the above steps.

Thanks
Stoich
Telerik team
 answered on 31 May 2011
1 answer
106 views
I am using VSTS 2010 Coded UI for automated Test.

While I am recording actions from our program window, telerik rad Toggle Button is recorded as win button but when I re run the script It throws below error.

Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
TechnologyName:  'MSAA'
ControlType:  'Window'
Name:  'Open'
ClassName:  '#32770'

I had also tries to locate the tab by manually searching for the control withing specific container but it throws the error that windows control could not find.

I tries to resolve it every possible way to locate the control but VSTS 2010 Coded UI not able to locate the control.

Please help me resolve the issue ASAP.
Vladislav
Telerik team
 answered on 31 May 2011
1 answer
61 views
Hello,

We use  Hudson ver. 1.366 to CI Builds

Could someone please tell me the steps to take their Web UI Tests and integrate them into something like this. Or a similar product.
So each time they build the run the Web UI Tests

Thanks
Stoich
Telerik team
 answered on 28 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?