Telerik Forums
Testing Framework Forum
1 answer
115 views
Hi,

I've installed the Telerik testing framework and opened one of the test projects "XamlSampleTests" in VS2010. It compiles successfully. When i run it all the tests fail. The first one it runs is the WindowStateTest it fails on this line.
Assert.IsTrue(window.IsOpen, "The window should be initially opened!");

It throws an exception that the assert failed. I can't figure out how it failed. I'm able to see the IE open and access the test website. I've also tried to run VS2010 under administrator account. That doesn't work either. Are there any prerequisites for running the test program?

Also i had to remove the ArtOfTest.Common dll from the references in order to compile the program successfully. I was not able to find the dll in the framework installer package.

Thanks. Regards,
Arooj
Boyan
Telerik team
 answered on 25 Jul 2011
2 answers
253 views
I'm trying to use WebAii to automate tests with Silverlight. I've installed the framework, but can't find this dll. Where is it?

Also, is there any documentation on how to use the wrappers?

Thanks
Plamen
Telerik team
 answered on 25 Jul 2011
11 answers
124 views
Hello

to reproduce use this code:
var actions = Manager.Current.ActiveBrowser.Actions;
actions.InvokeScript("window.my_list=[1,2,3]");
var list = actions.InvokeScript<IList>("window.my_list"); // here

In IE and FF3: object[3] { 1, 2, 3}
In FF4: empty array object[0]

Fix please

Cody
Telerik team
 answered on 20 Jul 2011
2 answers
125 views
i was able to successfully create automation using the TTF but after a week when i was try to run my previous created test methods, the mouseclick event doesn't working properly. Which means it click in different location and also doesn't performing the event. 

So I return again to Click, which will not be seen on the recording of the automation...

Any suggestion to fix the mouseclick, so that it will be recorded for us to see all the action of the automation.

Thank you.

Wilfred
wilfredo
Top achievements
Rank 1
 answered on 20 Jul 2011
3 answers
132 views
Hi,

I am new to this framework. I am using the Telerik Testing framework. I am able to right click on the telerik radcontrol tree item, but i am unable to get the handle of the context menu item.

Can you please let me know how to click on the menu item ?

Thanks in advance,

Chethan
Boyan
Telerik team
 answered on 15 Jul 2011
1 answer
98 views
When calling the GetCookies(string url) method it's not returning any of the non-persistent cookies (such as session cookie), has anyone else seen this problem?

Thanks
Cody
Telerik team
 answered on 08 Jul 2011
1 answer
129 views
In Firefox, if you land on a page that tries to access your location, you will get a Share Location dialog. If you select the "Always Share" option (so that it won't pop-up in later steps), the only way to correctly clear the browser for the next run is to clear "Site Preferences" in the cache history. Your framework (WebAii) does not provide a method for clearing that specific cache element, only Cookies, TempFilesCache and History.
Is there a way to specifically clear the Site Preferences when you do not know if the option is checked in the Clear History dialog? If I knew that it was checked, it would be simple to just send the key commands to clear everything, then refresh.
Thanks!
Cody
Telerik team
 answered on 08 Jul 2011
1 answer
104 views
Hi,

I need to automate a silverlight application which is being redirected from https to http, https part of the application doesnt have any silverlight and the http part have silverlight.

I know that webaii doesnt support https verion of silverlight in Firefox/Safari/Chrome (Only in IE it works). So inorder to overcome this i have redirected my application through http. But my authentication server which is common for all application and it works in https mode. When i tried automating this scenario i couldnt connect silverlight using webaii/Firefox and even the silverlight application is not getting loadded, But it works fine with IE. Please help me to solve this problem and let me know if we can have some alternate (I cant do anything with my Authentication server, but can try something in my silverlight application)

Flow of request
HTTPS (Normal Web Application/Authentication Server) -> HTTP (Silverlight Application)
Issue
Silverlight Application not getting loaded in Firefox, the same script works fine in IE.

Thanks in Advance

Regards, Sivaraj
Cody
Telerik team
 answered on 08 Jul 2011
1 answer
73 views
Hi

I just wanted to report that when using FireFox 5.0 Browser.ContentWindow.Rectangle returns the same values as Browser.Window.Rectangle

So this is a problem when doing Browser.ContentWindow.GetBitmap()

FYI : IE9 and Chrome12 don't repro this problem, I haven't tried with Safari5.

Hope you can fix this one soon.

Cheers
Cody
Telerik team
 answered on 08 Jul 2011
3 answers
166 views

Hi,

I have recently come across the WebAii Testing Framework and as a proof of concept wanted to implement some tests using NUnit against one of our projects (ASP.NET MVC 2).

The following config is set:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii" />
    <section name="WebAii.Settings.Web" type="ArtOfTest.WebAii.Core.WebSettingsConfigSectionHandler, ArtOfTest.WebAii" />
  </configSections>
  
  <WebAii.Settings.Web
    aspNetDevServerPort="1234"
    localWebServer="AspNetDevelopmentServer40"
    defaultBrowser="InternetExplorer"
    enableScriptLogging="true"
    enableSilverlight="false"
    enableUILessRequestViewing="false"
    killBrowserProcessOnClose="false"
    recycleBrowser="false"
    silverlightApplicationPath=""
    silverlightConnectTimeout="30000"
    useHttpProxy="false"
    verboseHttpProxy="false"
    webAppPhysicalPath="C:\mysite\mysite.Web"
    />
  
  <WebAii.Settings
    annotateExecution="false"
    annotationMode="All"
    clientReadyTimeout="30000"
    createLogFile="true"
    enableUILessRequestViewing="false"
    executionDelay="200"
    executionTimeout="20000"
    logAnnotations="false"
    logLocation="C:\WebAiiLog\"
    queryEventLogErrorsOnExit="false"
    simulatedMouseMoveSpeed="0.3"
    unexpectedDialogAction="HandleAndFailTest"
    waitCheckInterval="500"
    xMultiMgr="false"
  />
  
</configuration>

And the code in my unit test looks is:
// Launch a browser instance
Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
// The active browser
ActiveBrowser.NavigateTo(@"~/Home");

I am expecting to navigate to: http://localdev.mydomain:1234/mysite/Home
But get: http://localhost:1234/Home instead

I have the following mapping in my hosts file:
127.0.0.1       localdev.mydomain

I'm not sure if I have my settings wrong? I would appreciate any help with this issue.

Thanks

Cody
Telerik team
 answered on 08 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?