Telerik Forums
Testing Framework Forum
5 answers
103 views
Hi,

I am automating silverlight 3 application using webAii 2.0.
I am having a strange issue

when i use the below code in Dev source code of my application its getting timeout. But the QA version of the same works fine.

ActiveBwoser.SilverlightApplications()[0];

Anyone has any info on this.
I developed simple silverlight application and locally tested thats is working fine. But my real project is not.

Thanks
Kiran
Missing User
 answered on 29 Jul 2010
2 answers
104 views
Hi,

I am using WebAii 2010.1 for automating silverlight 3 application.
In my application i am having childwindow in which i am loading a wizard like control.
In that wizard controls are created dynamically.

But i am not able to get those dynamically created controls.
I tried refreshing the visual tree like below but not working.

app.RefreshVisualTrees();

app.VisualTree.Refresh();

app.Popups[0].VisualTree.Refresh();


Please help me its urgent.....
Thanks in advance

Kiran
Top achievements
Rank 2
 answered on 28 Jul 2010
5 answers
153 views
Hey all,

After much wrestling, we're making good headway in making WebAii work for us, and not the other way 'round.  :-)  (We're trying to abstract away WebAii for various long term maintainability reasons, so this obviously presents itself as fighting the original design and intent of WebAii, causing a lot of initial frustration, and rightly so).

We're noticing that when the framework is installed in the typical fashion, when adding a reference to the assembly from a different folder to the solution, the reference is redirected to the install base.

Is there a way to circumvent this besides uninstalling the framework after grabbing the necessary binaries?  What controls this behavior?  Since we're basing our solution on a very specific version for consistency reasons, we really only want to reference the tools from our source controlled location.  However, referencing the copied assemblies from any other folder still causes it to point to the /Program Files/ location.

Thoughts?

Thanks in advance and thanks for all the help and patience provided so far.
Steven Raybell
Top achievements
Rank 1
 answered on 28 Jul 2010
3 answers
136 views
Hi,

I am using WebAii. 2010.1 version for silverlight 3 automation.

I have to get all the ComboBoxItmes from a combobox. But i am getting empty list.

 

 

 

ComboBox cmbBox = app.Find.ByType<ComboBox>();

 

 

IList<TextBlock> blocks = cmbBox.Find.AllByType<TextBlock>();

 

 

IList<ComboBoxItem> items= cmbBox.Items;

 

 

IList<ComboBoxItem> cmbItems = cmbBox.Find.AllByType<ComboBoxItem>();

 

 

IList<FrameworkElement> cmbFrameworkItems = cmbBox.Find.AllByType("ComboBoxItem");

 

 


Thanks
Kiran

Konstantin Petkov
Telerik team
 answered on 28 Jul 2010
4 answers
112 views
Hi,

I am using WebAii 2.0 for silverlight 3 automation.

I need to click the Plus(+) sign in the RadGridView. Please see the attached image for reference.
Actually what is that Plus(+) sign control. Is it an image or anything else?

Is it possible through Translator? Any way i want the other way.

Thanks
Kiran
Kiran
Top achievements
Rank 2
 answered on 27 Jul 2010
6 answers
127 views
Hey all,

I'm currently experiencing an issue where when attempting to get the SilverlightApp, the automation experiences a Timeout.  I've tried changing security settings as per instructions for setting up for WebAii, I've tried running as admin, impersonation, the works.

I can access HTML elements without issue, however, when attempting to get the app, it finds the element (as reflected by debugging) for the Silverlight object, but the app reference fails return.  Increasing the timeout only results in the exception coming later and does not improve the situation.

The code here:

            this.Manager.LaunchNewBrowser(BrowserType.InternetExplorer, true, System.Diagnostics.ProcessWindowStyle.Maximized);
            this.ActiveBrowser.NavigateTo("https://ourwebsite/OurAppLocation/");

            SilverlightAppsList appsList = this.ActiveBrowser.SilverlightApps();
            SilverlightApp app = appsList[0];

results in the exception on the last line.

I've tried other .NavigateTo()+ overloads as well, without success.  Interestingly, this happens on my machine, by not my coworkers'.  Another coworker is continually having issues getting an initial action from the navigation process to work, even after modifying the security settings for IE.  We have yet to find a common problem here, other than WebAii is having a very difficult time getting the application handles, be it browser, or the SilverlightApp.

Perhaps we're missing something vital?

My machine configuration:

- Visual Studio 2010 Ultimate
- Server 2003
- IE 7
- Default Template (VSUnit)

At this rate, we've invested so much time, with little yield, we're becoming somewhat disenchanted.  Any help to get us on track ASAP would be most beneficial.  I'm trying this on another machine and will report back if the same results are observed there.
Steven Raybell
Top achievements
Rank 1
 answered on 27 Jul 2010
3 answers
153 views
I have a test that worked with an older version of WebAii (Beta). I just downloaded the latest version and the tests that run with IE all fail but work with Firefox.

The test fails when I call LaunchNewBrowser(). IE starts up and goes to "about:blank" and is functional (I can use it directly) but the method fails with exception

System.TimeoutException : Wait for condition has timed out

at ArtOfTest.Common.WaitSync.CheckResult(WaitSync waitString extraExceptionInfo)
at ArtOfTest.Common.WaitSync.For(Predicate`1 predicateT targetBoolean invertConditionInt32 timeout)
at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunchBoolean waitForBrowserToConnectProcessWindowStyle windowStyleString arguments)
at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunchBoolean waitForBrowserToConnect)
at Marqui.Tests.wxWeb.ArtOfTest.TestArtOfTest.InitializeInstance() in TestArtOfTest.cs: line 36


My test looks like this:

      SetTestMethod(this, "InitializeInstance");

      Manager.LaunchNewBrowser(BrowserType.InternetExplorer, true);

      ActiveBrowser.NavigateTo("http://www.google.ca");

and I have a SetUp method that looks like this

    [SetUp]
    public void InitializeEachTest()
    {
      var settings = new Settings(BrowserType.InternetExplorer, LogLocation)
                       {
                         DefaultBrowser = BrowserType.InternetExplorer,
                         RecycleBrowser = true,
                         BaseUrl = TestSite,
                         ClientReadyTimeout = 60000,
                         ExecuteCommandTimeout = 60000,
                         AnnotateExecution = true,
                         AnnotationMode = AnnotationMode.All
                       };

      // Now call Initialize again with your updated settings object
      Initialize(settings, LogCaller);
    }


 John.
John Woakes
Top achievements
Rank 1
 answered on 26 Jul 2010
2 answers
125 views
Another issue appeared: FileUploadDialog  cannot be handled if test executed in non-interactive environment.
We have console app test scenario, which pop-up FileUpload dialog. During debug and interactive checks this dialog was handled successfully by this code:
var fileDialog = new FileUploadDialog(ab, toAbsPath(testImage), DialogButton.OPEN);
mgr.DialogMonitor.AddDialog(fileDialog);
mgr.DialogMonitor.Start();

But when we deployed it on our monitoring server (win2003EE SP2 \ IE8) - this code no longer works. Console app periodicaly started by special monitoring software - its run in interactive but always LOCKED session (Its like you scheduled program to run with custom app and locked your PC). After few runs I logged in and saw all instances of IE, not closed and with FileUploadDialog popped (and not handled properly).
I tried to figure this bug origin with Sysinternals procmon but was unable to deal with all that calls ( saved dump btw).
Any ideas or help how to track and fix that misbehaviour.

UPDATE: I read anwer on this topic
http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/simulated-clicks-not-running-if-machine-is-in-locked-state.aspx
but i still wonder why then all other my tests run fine, except with FileUploadDialog.
I suspect this is because FileUploadDialog is win32 window, not browser one, but then can you point me to working example of FileUpload scenario without this dialog monitoring ( one in docs doesn't work, afaik).
Alexey Shcherbak
Top achievements
Rank 1
 answered on 26 Jul 2010
7 answers
199 views
Hi,

I am using WebAii for automating silverlight application.
How can i set focus to a silverlight control lets say Textbox.
I am not seeing any method or property for that.
Can anybody help me......

Thanks
Kiran
Konstantin Petkov
Telerik team
 answered on 24 Jul 2010
4 answers
139 views
Hi,

I am using WebAii 2.0 for UI testing.
I would like to know how can i get the current mouse location.

Thanks
Kiran
Kiran
Top achievements
Rank 2
 answered on 24 Jul 2010
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?