Telerik Forums
Testing Framework Forum
1 answer
113 views
Hi,

I cannot find the right place to download the testing framework now (http://www.telerik.com/automated-testing-tools/free-testing-framework.aspx), can someone help me?

Thanks a lot!
Plamen
Telerik team
 answered on 30 Jan 2012
1 answer
51 views
Hi,

I am testing a website and one of the links is target="_blank". In IE9, this creates a brand new Browser Instance, not a popup. As a result, the following approaches do not work:

1. Manager.Browsers.Count remains equal to one forever (I can test this using long timeouts
2. Wait for IEConnect does not work because the new window is not a popup. It is a new browser.
3. Manager.WaitForNewBrowserConnect(url) does not work. The new browser is not a popup per se, it's a brand new browser window so it does not seem to be associated with ActiveBrowser (like popups are).

So my questions are:

1. In IE9, when I click a target="_blank" and a brand new browser window appears, how do I get hold of it within the Telerik Framework?
2. Can I get hold of an already-running-browser instance that I did not spawn within Telerik?

Thanks for your help!

Grim

Anthony
Telerik team
 answered on 27 Jan 2012
3 answers
323 views

Hello,

I have downloaded the last WEBAII framework (WebAii_Testing_Framework_2010_2_713_FREE_EDITION.msi) and this framework do not behave the same way as the previous one. During the exact same test (no code modification, only the framework update)  I obtain now : 16/07/2010 12:29:11.374 ' - Unexpected dialog encountered. Closing the dialog, and halting execution.

 

It appears when a the IE8 Win32 OpenDialog is displayed (French System so, the title is Ouvrir and so on).

I have tried "manager.DialogMonitor.Stop" but, same error, it closes the dialog directly with this error.

Is there a way to indicate the framework to not monitor this window? It is because I manage this type of window using an external executable to manipulate the different OpenDialog by language.

Thanks & Regards.

-----------------

I have found a way that suit my need at the moment: "mySettings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle"

Regards.

Stoich
Telerik team
 answered on 26 Jan 2012
3 answers
127 views

Hi

I think there's a bug in Teleriks implementation of xpath, if the following snippet is on the page i get a xml error when running a find.

 

<a class="addthis_button_google_plusone" <%="g:plusone:annotation"%>="none"></a>

I'm doing find by expression like seen below:

private

HtmlFindExpression h1 = new HtmlFindExpression("xpath=//h1");

Assert

.IsNotNull(currentTest.Find.ByExpression(h1), "h1 not found");


The same xpath works fine in if using Selenium.


Below is the error message thrown:
The ':' character, hexadecimal value 0x3A, cannot be included in a name.


Workaround:
HtmlFindExpression("tagname=h1");

But i still hope you fix this bug.

 

Martin
Top achievements
Rank 1
 answered on 26 Jan 2012
1 answer
85 views
Hi
How do i use the Framework with VisualStudio2010
Regards
N
Anthony
Telerik team
 answered on 24 Jan 2012
8 answers
270 views

Hi all,

I am getting the following exception after LaunchNewBrowser() is called (IE does get launched):

   System.ApplicationException : Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.
  ----> System.NullReferenceException : Object reference not set to an instance of an object.
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser()
   at YuntuMerchantUITest.YunTuAutomationBVT.AccountInfoBVT()
--NullReferenceException
   at ArtOfTest.Common.Win32.WindowManager.Attach(IntPtr& handle, Boolean findTabWindow, Boolean loadClr, IntPtr& hookId)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)

I've seen similiar posts in the forum and have already done the following:
1. disabled UAC in server management tools
2. compile for x86.
3. loading the test dll using Nuit's x86 exe
4. change all IE security settings to align with the guide from WebAii.

Code:
Manager m = new Manager(false);
m.Start();
m.LaunchNewBrowser();

Environment:
IE8, version 8.0.7600.16385
Windows Server 2008 R2, 64bit

Same exact code runs perfectly fine my Win7 32bit machine. Same IE version and security settings. This leads me to believe it's a 32bit/64bit issue, however from TaskManager, the iexplorer.exe process has a *32 after it (which means it's a 32bit process).

Any insights? I am pretty much all out of ideas right now.

Thanks...
Xin

Saket
Top achievements
Rank 1
 answered on 23 Jan 2012
3 answers
424 views
Here is a scenario as below:
I want to know whether the element exists, if exists, the test will execute some codes, if not exists, test will execute other codes.
Now, I use find to get the element, but if it does not exist, an exception with "Element not found"  throws, and so left codes will not be executed.
So please give me some hlep to handle this situation, Thanks!! 
Plamen
Telerik team
 answered on 19 Jan 2012
6 answers
201 views
Using: ArtOfTest.WebAii.dll 2011.2.1108.0.
Windows 7 x64 / VS2010 / Mstest / Silverlight 4.

Calling FrameworkElement.Refresh() according to doco is meant to 'refresh this framework element within the visualtree'.  This works fine when the element is part of the main application's visual tree, however seems not to work when the element is part of a popup / child window visual tree. 

Attached is a minimal test project to repro the issue.  It has two unit tests, 1 passes (for a control on the main visual tree) and 1 fails (for the same control on a child window). 

Can you please confirm if this is a bug, or otherwise what I am doing wrong?

Thanks.
Plamen
Telerik team
 answered on 17 Jan 2012
9 answers
224 views
An error appears in the Application event log at the end of any MsTest run that includes a test that uses the Telerik Testing Framework:

(QTAgent32.exe, PID 13180, Thread 8) ResolutionAppDomainHelper.Unload: An error occurred while attempting to unload the tests AppDomain.  The AppDomain may still have foreground threads executing.

My test is simple, just launch a browser:

        [TestMethod]
        public void EventLogError_Test()
        {
            Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
        }

        [TestCleanup()]
        public void MyTestCleanup()
        {
            // Shuts down WebAii manager and closes all browsers currently running
            this.CleanUp();
        }

Please find attached this simple test project, after the test run completes, check your Windows event log (Application) for the error.  I'm not sure what the side effects of this error are, it doesn't seem to affect the test result. 
Plamen
Telerik team
 answered on 17 Jan 2012
4 answers
279 views
HI everyone,
I tried to get the text in textbox, but I am failed!
My scenario is like this:
When the web page is opened, some data will be retrived from DB and fill in the textbox, now I'd like to verify the text in the textbox, but can not get it. Below is my test code

silApp.RefreshVisualTrees();
string sex=silApp.FindName("patientinfo").Find.ByName("tbSex").TextBlockContent);

After executed the code,  the string sex is still empty, but actually it's not and should be "F". Further more I can see the text on webpage, just can not get from the test code.
           
lucia
Top achievements
Rank 1
 answered on 17 Jan 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?