Telerik Forums
Testing Framework Forum
2 answers
115 views
Hi, I'm using Telerik Testing Framework and have problem with some tests that's fail. When I run this tests from with TFS build then some tests doesn't pass. When I login on machine that run tests and run them from console then all test pass. I notice that when I minimize the RDP some test's failed during time when RDP was mimimized. I have also noticed that when test run from TFS build make capture there is only black place. What's the reason of that behavior?
Anthony
Telerik team
 answered on 16 May 2012
3 answers
180 views
Hi Telerik,

I'm using Telerik to make some Demo to make sure that Telerik is able to automation HTML5. So I go to http://www.apple.com/html5/showcase/typography/ 
That is apple HTML5 show case. There's a field Div that can be edit but I can't find any method to input text into Div tag.
Could you support that? How many percent of HTML5 features that Telerik can cover? (I need that to decide using Telerik or not)

Thank you
Cody
Telerik team
 answered on 15 May 2012
3 answers
130 views
I'm trying to debug webaii failures when using Firefox.  When the test executes, Firefox opens and returns an error saying "The proxy server is refusing connections" (see attached screenshot).  It seems like something is happening with the browser provisioning plug-in, but I'm not sure.

Some more info:
- Firefox 9.0.1
- Windows Server 2008 R2
Ivaylo
Telerik team
 answered on 15 May 2012
1 answer
93 views
Hello I have a problem of mouse clicking event.
I am creating automation test using C# and WebAii. Basically I try to find id tag of target element on the web page then hover the mouse and click on the button.
This event works fine with IE 9 but when i run this script with Firefox 11 and 12, It does not work. In Firefox when the mouse pointer hover on the button, the mouse pointer does not change to hand pointer and it is not click the button. is this because WebAii does not support latest Firefox or something?
Here is some portions of my code basically what I did was find the ButtonElement by Id and if ButtonElement is found then call the following method.

if (ButtonElement != null)
{
       ButtonElement.ScrollToVisible();
       ButtonElement.MouseHover();
       ButtonElement.MouseClick();
}
 
Else
{
       Do Something
}

Thanks
Plamen
Telerik team
 answered on 15 May 2012
9 answers
203 views
Hi All,

I am using Execution Extensions to do some setup and cleanup type of activity for test & test list execution.
Code from OnBeforeTestStarted(),OnAfterTestCompleted() and OnInitializeDataSource() is properly executing but code from OnBeforeTestListStarted() and OnAfterTestListCompleted() is not executing.Simply I have added code to write log to text file but it is not happening because I think OnBeforeTestListStarted() & OnAfterTestListCompleted() is not getting executed. The same is working fine with OnBeforeTestStarted() & OnAfterTestCompleted(). Am I missing something here?

I have created one test list and I am trying to execute this test list with VS's Start Debugging(F5) option.
My Test Studio version is 2011.2.1413.0 & I am using VS 2010 for development.
Pankaj
Top achievements
Rank 1
 answered on 15 May 2012
6 answers
434 views
Exception:
Initialization method MyTests.InitializeTest threw exception.
 
System.Configuration.ConfigurationErrorsException: System.Configuration.ConfigurationErrorsException:
 An error occurred creating the configuration section handler for WebAii.Settings: Could not load file
 or assembly 'ArtOfTest.WebAii' or one of its dependencies. The system cannot find the file specified.
 (C:\MyTests\bin\Debug\TestResults\akharlamov 2011-01-30 12_53_49\Out\MyTests.dll.config line 5) --->
 System.IO.FileNotFoundException: Could not load file or assembly 'ArtOfTest.WebAii' or one of its
 dependencies.

App.config (Build Action: Content, Copy to Output Directory: Copy always):
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii" />
  </configSections>
  <WebAii.Settings
      annotateExecution="true"
      baseUrl="http://local.mytests.com"
      clientReadyTimeout="50000"
      defaultBrowser="FireFox"
      enableScriptLogging="false"
      enableUILessRequestViewing="false"
      executionDelay="0"
      executionTimeout="60000"
      localWebServer="None"
      logLocation="C:\WebAiiLog\MyTests"
      queryEventLogErrorsOnExit="false"
      simulatedMouseMoveSpeed="1"
      webAppPhysicalPath="/"
      recycleBrowser="false"
      killBrowserProcessOnClose="true"
  />
</configuration>

Run:
mstest /testcontainer:MyTests.dll

I can run my tests through visual studio without issues, however when I run them through the command prompt I have an issue running the tests, I am getting an exception stating that my app.config file is missing even though I can see it in the bin/Debug folder. I am wondering what I am doing wrong?

UPDATE: tried adding:
<section name="WebAii.Settings" type="ArtOfTest.WebAii.Core.SettingsConfigSectionHandler, ArtOfTest.WebAii, Version=2.0.50727, Culture=neutral, PublicKeyToken=4fd5f65be123776c"/>
and just 2.0.5.0, but no luck.


-Thank You.
Cody
Telerik team
 answered on 14 May 2012
2 answers
193 views
Hi.

Last 1.5 years I work using Free Test Framework - it is awesome! Thanks.
But I used only possibilities to test Web and Silverlight apps, today I've tried to write simple test for WPF application and I have some problems. Tell me please - how to solve them? Where is my bug? Application (Visio) was launched OK, but I can't find any controls inside of it because exception displayed. Why Silverlight is mentioned there? Actually Silverlight is set to false. I use BaseWpfTest here, also I've tried BaseTest, tried to connect to process etc. - results are same.

Code (part of standard NUnit test):

// An Example TestMethod:
[Test]
public void SampleWebAiiTest()
{
           // Launch the application instance
            var wpfApp = Manager.LaunchNewApplication(@"C:\Program Files (x86)\Microsoft Office\Office14\VISIO.EXE");
            var somebutton = wpfApp.MainWindow.Find.ByName<Button>("OpenButton");
}

Problem during execute:
{"Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: ArtOfTest.WebAii.Silverlight.ExecuteSilverlightCommandException: [WPF Extension Error] Details: System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Telerik.TestingFramework.XamlExtension.ClientServices.SerializeNode(DependencyObject root, StringBuilder sb, List`1 popups)\r\n   at Telerik.TestingFramework.XamlExtension.ClientServices.SerializeAllVisualTrees()\r\n   at Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)\r\n   at ArtOfTest.WebAii.Wpf.WpfProxy.ExecuteSLCommand(SilverlightCommand cmd)\r\n   at ArtOfTest.WebAii.Wpf.WpfProxy.GetAllVisualTrees()\r\n   at ArtOfTest.WebAii.Wpf.WpfWindow.RefreshVisualTrees()\r\n   at ArtOfTest.WebAii.Silverlight.VisualFind.RefreshRoot()\r\n   at ArtOfTest.WebAii.Silverlight.VisualWait.WaitForExistsByFindInfo(VisualFindInfo findInfo)\r\n   at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)"}
Anton
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
68 views
Hi telerik,

I'm automation an Silverlight app that invoke a dialogs that looks like windows dialog (see attach image)

So I used this code and it works but when it handle the second dialog, it just stop there and it doesn't click the OK button.
Please help me figure this out.
Thanks

try
{
    Button btnRemoveDashboard = GlobalObject.SILVERLIGHTAPP.Find.ByName<Button>("btnRemoveDashboard");
    GlobalObject.MANAGER.Settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;
 
    GenericDialog altDlg = new GenericDialog(SM2Utilities.GlobalObject.BROWSER, "Close" + strDBName, true, "OK", "Are you sure you want to remove this dashboard and all of its panels?");
    altDlg.HandlerDelegate = MyCustomAlertHandler;
    altDlg.DismissButton = DialogButton.OK;
    GlobalObject.MANAGER.DialogMonitor.AddDialog(altDlg);
    GlobalObject.MANAGER.DialogMonitor.Start();
    btnRemoveDashboard.User.Click();
 
    altDlg.WaitUntilHandled(5000);
 
    GlobalObject.MANAGER.DialogMonitor.RemoveDialog(altDlg);
    GlobalObject.MANAGER.DialogMonitor.Stop();
    GlobalObject.MANAGER.Dispose();
}
catch (Exception)
{
}
 
 
public static void MyCustomAlertHandler(IDialog dialog)
{
            Window okButton = WindowManager.FindWindowRecursively(dialog.Window.Handle, "OK", false, 0);
 
            GlobalObject.MANAGER.Desktop.Mouse.Click(MouseClickType.LeftClick, okButton.Rectangle);
            dialog.HandleCount++;
}

Anthony
Telerik team
 answered on 14 May 2012
2 answers
209 views
I am using the latest Telerik Testing Framework 2012.1.411.

I have posted a thread called "Testcases ignores executionTimeout in app.config" yesterday.
It seeks to extend the executionTimeout of long running testcases beyond the default
30min, by using the executionTimeout setting in app.config.

If that is not possible or problematic, this is a complementary thread.

In a testcase's TestInitialize function, we can do the following
   ...
   Settings settings = GetSettings();
   settings.Web.EnableSilverlight = true;
   ...

to set the EnbleSilverlight property.

Is there a similar way to programmatically set the ExecutionTimeout?

Currently, settings.Web.ExecutionTimeout and settings.ExecutionTimeout do not exist and the code
cannot be compiled.

Maybe, there is a way that I am not aware of?

Thanks,
kwee
Top achievements
Rank 1
 answered on 14 May 2012
6 answers
163 views

Hello Team,

The Silverlight application under test that I verify is sometimes generating "Error On Page, and my test failed. 

So to avoid to continue the test for nothing, I would like to know if there is a way to know, within the framework, if an IE "Error on Page" has occured.

The browser type in use is IE 8.

I have attached a screenshot to illustrate this type of error.

Thanks & Regards.

Pankaj
Top achievements
Rank 1
 answered on 14 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?