Telerik Forums
Testing Framework Forum
4 answers
141 views
Hi,

I am trying to open one pop-up by clicking a link by click method  my script is hanging but when i use mouseclick() method it is working fine. Can any body tell me the reason ?.

Thanks in advance.

Regards
Kumar

wilfredo
Top achievements
Rank 1
 answered on 22 Jun 2011
7 answers
168 views
I've had a number of issues trying to automate a Silverlight application from a unit test.  I will post different error messages to this thread as I see them.  

Here is the latest example:

Error: SilverlightUtils.AppendAutomationExtension() : EXCEPTION ("Unable to inject System.Windows.dll")
     Type: NullReferenceException
     Message: Object reference not set to an instance of an object.
     Call Stack:
          at ArtOfTest.WebAii.Silverlight.SilverlightUtils.AppendAutomationExtension(MemoryStream originalXapFile)

I can't make heads or tails of this error, which is typical for the error messages I receive.

I can attach my Visual Studio solution that contains my tests.  Do I need to include my Silverlight app? Or attempt to develop a Silverlight app that reproduces the error message with my test solution?

Thanks for your help.
Paul Schofield
Cody
Telerik team
 answered on 21 Jun 2011
5 answers
159 views
Hello,

I want to install telerik testing framework 2010.3, but I can't find the old versions of Testing Framework anywhere in the downloads section, it just has a link to the latest version. Can you please point me to the older version.

Thanks.
Monika
Top achievements
Rank 1
 answered on 17 Jun 2011
1 answer
99 views
Just create new project, TestMethods are under GeneralTest.cs while the codes or public methods are under General.cs.

General.cs contains

public void LoadBrowser()
{
    Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
}

GeneralTest.cs

[TestMethod]
public void LaunchBrowser()
{
    General.LoadBrowser();
}

Running the application return object reference not set to an instace of an object.

Please guide solving my first problem.. thank you
Stoich
Telerik team
 answered on 17 Jun 2011
1 answer
147 views
I have a small test using Test Framework. Here's the sample code:

[Test]
public void TestTextBox()
{
    WpfApplication wpfApp = Manager.LaunchNewApplication(@"C:\Projects\myapp.exe");
    var loginWindow = wpfApp.GetWindow("Login");
    loginWindow.Find.ByName<TextBox>("usernameTextBox").Text = "user1";
    loginWindow.Find.ByName<PasswordBox>("passwordTextBox").Password = "pass1";
    loginWindow.Find.ByName<ComboBox>("environmentComboBox").SelectItemByText(false, "DEV");
    loginWindow.Find.ByName<Button>("connectButton").Click(MouseClickType.LeftClick, false, false, 0, 0, OffsetReference.AbsoluteCenter, ActionPointUnitType.Pixel);
}

On following line:
loginWindow.Find.ByName<ComboBox>("environmentComboBox")
I get the following error:

System.InvalidCastException : Unable to cast object of type 'ArtOfTest.WebAii.Wpf.WpfWindow' to type 'ArtOfTest.WebAii.Silverlight.SilverlightApp'.
   at ArtOfTest.WebAii.Silverlight.UI.ComboBox.get_Items()
   at ArtOfTest.WebAii.Silverlight.UI.ComboBox.RefreshItemsForSelection()
   at ArtOfTest.WebAii.Silverlight.UI.ComboBox.SelectItemByText(Boolean simulateRealUser, String text)
   at TelerikTestFramework.TelerikNUnitTest1.TestTextBox() in TelerikNUnitTest1.cs: line 135

What may be the problem?

The other question is about the maturity of Telerik Testing Framework for WPF. I only see two classes in Wpf namespace and all controls are returned from Silverlight namespace. Even though the framework looks great and clean, but I'm reluctant to recommend Telerik's framework if it's not prepared to test WPF apps.

Thanks
Stoich
Telerik team
 answered on 17 Jun 2011
9 answers
315 views
when i hit record, it records and run test., but the hover over hiligting is not working to check property and values of some textboxes

In addition to that, the dom explorer is not loading any ting it went white blank

Abdul
Anthony
Telerik team
 answered on 15 Jun 2011
1 answer
97 views
Hello!
I have a problem with start test in safari 5.0
I found here http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/support-for-safari-5-0.aspx that last version supports safari 5.0, but i have this exception

'6/14/2011 4:00:17 PM' - System.NotSupportedException: Safari version 5.0.1 or later is required for automation to function
   at ArtOfTest.WebAii.BrowserSpecialized.Safari.SafariActions.LaunchNewBrowserInstanceInt(Int32 timeout, String remotedUrl, ProcessWindowStyle windowStyle, Manager manager)
   at ArtOfTest.WebAii.BrowserSpecialized.Safari.SafariActions.LaunchNewBrowserInstance(Int32 timeout, String remotedUrl, ProcessWindowStyle windowStyle, Manager manager)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   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)
Anthony
Telerik team
 answered on 14 Jun 2011
1 answer
252 views

The selection of infragistics dropdown option is not setting the option


 

var combo = item.Find.ByExpression<HtmlInputCheckBox>("type=checkbox"

);

combo.Click();
combo.InvokeEvent(ScriptEventType

.OnChange);

The above lines of code is able to click the given option in a multiselect dropdown, but after checking the checkbox, it is not setting the checked value in dropdown

the dropdown is infragistics control. Can anybody shed some light on this.

i tried using combo.check() as well it is also having same issue.

 

 

Anthony
Telerik team
 answered on 13 Jun 2011
3 answers
167 views
Hi, 

I have Visual Studio 2010 installed and recently installed the trial of Telerik Test Studio, this file: TestStudio_2011_1_502_Trial.msi.

I followed the instructions from here: http://tv.telerik.com/watch/webui-test-studio/video/introduction-to-telerik-webui-test-studio

But when I go to add New Test after creating a project, I do not see th eoption to add a new WebAii Test.  Any suggestions?

Thanks,
Tim

Anthony
Telerik team
 answered on 10 Jun 2011
5 answers
172 views
Hey all,

I'm running webaii against a silverlight 4 application and I'm seeing a weird case where my testing framework hangs trying to find a FrameworkElement by automationId.  My test basically looks like this.

try
{
string automationID = "MyAutomationID";
Console.WriteLine("Find the element by automation ID");
FrameworkElement element = Application.Find.ByAutomationId(automationID);
Console.WriteLine("Found element");
}
catch (Exception e)
{
Console.WriteLine("Caught Exception: " + e.Message);
}

I can see the log before the find but I don't see the log after and I don't see the log from the catch.  This doesn't seem to happen all the time and seems to be an intermittent failure.  I have three different test boxes that run against different browsers and this issue only happens on the test box that runs against Internet Explorer.  Eventually the MSTest framework hits its timeout and the tests move on.  Have you heard of any failure like this?  Do you have an idea on what might be "hanging"?  Let me know what info you might need to help discover the problem.

Thanks!
Larry
Top achievements
Rank 1
 answered on 08 Jun 2011
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?