Telerik Forums
Testing Framework Forum
6 answers
213 views
I wasn't sure if I should resurrect one of the previous threads or start my own. Either way, here's the issue.

My team has been running Webaii via Gallio test runner for the last year or so. We recently wanted to take advantage of some of the bug fixes in the most recent release. Our previous release was the 2010.1. I upgraded to 2010.3 and when attempting to launch any test, I get a timeout error akin to many of the others listed on these forums.

So far, I have tried:

  • Resetting the security settings on IE and following all of the steps on the configure IE 7 page.
  • I am on Windows 7 64-bit, and I have Ensured that I am building against x86.
  • I have set the local security settings to not restrict anonymous access to named pipes as indicated here.
  • I have attempted to uninstall and reinstall the webaii framework, during this process I made sure that all folders and assemblies were deleted as indicated here.
  • I have turned off all other addons in IE8. And I know that the new version doesn't use addons anymore, but I tried it anyway.
  • Running the test in firefox also does not produce results.
  • Ensured that there is only one manager being instantiated, considering the tests worked in 2010.1, this shouldn't be a problem but I checked anyway.
  • Ensured that I am only running IE8 32 bit edition.
Any help would be hugely appreciated. 

thank you,

Derick
Derick
Top achievements
Rank 1
 answered on 23 Feb 2011
3 answers
303 views
Hi guys, 

I've written the following method to help me 'wait' for buttons as a page uploads. 
public void WaitForButton(String awaitingButton)
    {
        StringBuilder buffer = new StringBuilder();
        buffer.Append("XPath=//input[@value=\"")
              .Append(awaitingButton)
              .Append("\"]");
 
        Manager.ActiveBrowser.WaitForElement(new HtmlFindExpression(buffer.ToString()), 20000);
       }

1. 20000 is WaitForElement's timeout therefore unless the button shows up within 20 sec from invoking the method, it should throw an       exception. For some reason it looks like a delay is created not a timeout. Are you aware of it? 

2. In addition, what are forms of HtmlFindExpression I can use other then Xpath ? Could you pls add an example? 

Ta. 
Stoich
Telerik team
 answered on 23 Feb 2011
2 answers
140 views
Does anyone know if there are any known issues using the WebAii proxy on a Virtual Machine? 

Currently we are seeing issues where all of our test machines are VM’s and at some point during the test run the proxy server will hang which causes all future test cases run on that machine to fail.  If we run without using the WebAii proxy we do not see this issue. 

As I have yet to find a way to set the User-Agent without using the Proxy for Safari we need this proxy to work and be stable. 

Any ideas?
Chris
Stoich
Telerik team
 answered on 22 Feb 2011
5 answers
102 views
Hi,

Is any one know if there had some place in WebUI Test Project Solution where i could changed for adding customize steps for setting up environment just like TestInitialize method in VS Test project?


Regards,
Tom
Stoich
Telerik team
 answered on 21 Feb 2011
3 answers
158 views
Hey all,

I have a problem with adding cookies to a browser.  I basically set my cookie:

CookiesManager cookiesManager = Manager.ActiveBrowser.Cookies;
 
Cookie myCookie = new Cookie();
myCookie.Name = "MyCookieName";
myCookie.Value = "SomeLongString";
myCookie.Domain = "Domain";
myCookie.Path = "/";
 
cookiesManager.SetCookie(myCookie);

I can see the cookie created in the browser (using FireFox I go to Options -> Privacy -> History -> Use custom settings for history -> Show Cookies).

The problem is, the cookie is NOT added as part of the HTTP request for the next url I navigate to.  Is this a bug, am I doing something wrong? 
Stoich
Telerik team
 answered on 18 Feb 2011
1 answer
135 views
Hello,
I am not able to verify the silverslight combobox text using verification hover tool provided by telerik.

Thanks,
Prachi
Stoich
Telerik team
 answered on 18 Feb 2011
5 answers
192 views
Hi,

Can anybody provide the code for identifying messagebox dialogue in silverlight?

Thanks in advance
Cody
Telerik team
 answered on 16 Feb 2011
2 answers
199 views
Hi,

I'm having a heck of a time trying to clear a Silverlight RadMaskedTextBox control.  What I want to do is iterate through a list of values to type into the control using the WebAii framework.  After typing a value, I would like to clear the control and then type the next value.  Here's what I have so far:

            theControl.MouseClick(MouseClickType.LeftClick, 0, true);
            theControl.TypeText(textToType, 0);

With this code, its appending the new value to what's currently there.  I've looked for a few hours and haven't found anything on clearing the control.

Thanks for your help.

Joel
Joel
Top achievements
Rank 1
 answered on 16 Feb 2011
5 answers
232 views
I'm finding it's much easier said than done... I'm having no trouble grabbing the ListBox, but the Items (ItemCollection) is not giving me the information I'm looking for. When I iterate through the strings, they display the class name of the item in the listbox. I'm looking for the actual string being displayed in the listbox. How can I get that actual string?
Arv
Top achievements
Rank 1
 answered on 14 Feb 2011
1 answer
95 views

I need to read an already open browser, not launch a new one - how to? assume its the only browser open on the desktop

    Cody
    Telerik team
     answered on 09 Feb 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?