Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:53905
More Search Options
RSS Available
Matching Posts
Re: Where is the LTAF download?
Sorry, the download got deleted by accident and we are working on putting the November refresh out as soon as possible. - Federico
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 11/4/2009
Re: How to settext to HtmlTextAreaElement
I see, your last message hints that the problem is that the in memory DOM that LTAF works against was not updated between different renderings of the control. This is by design, since there is no way for LTAF to know that it should go a retrieve the DOM again, that is why it works when you refresh the element (which tells LTAF to go and grab the latest DOM from the browser). - Federico
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 10/15/2009
Re: How to settext to HtmlTextAreaElement
I tried this in the office today but I could not get to repro the problem. I have a page with <textarea id="textarea"></textarea> and my test looks like this: [WebTestMethod] public void TypeOnATextArea() { HtmlPage page = new HtmlPage("Login.aspx"); page.Elements.Find("textarea").SetText("foobar"); } After running in FireFox I see the text in there. If you are still seeing this problem, could you provide some more details? - Federico
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 10/9/2009
Re: Is automating Browser settings, like disabling javascript possible through LTAF?
No, LTAF depends on javascript. WatiN is another automation framework that is not javascript based that can help you to automate these types of tests. Currently it only supports IE and I think FireFox support in on Beta. - Federico
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 10/9/2009
Re: How to simulate enter keypress on a textbox?
Sorry for my late reply, the way to accomplish this is to use the HtmlElement.DispatchEvent() method. Code would be something like: htmlElement.DispatchEvent(new HtmlKeyEvent("keypress") { KeyCode=13} ); Let me know if you need anymore help. - Federico keypress
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 10/9/2009
Re: How to settext to HtmlTextAreaElement
Interesting. I will try to repro this tomorrow and let you know what I find. - Federico
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 10/7/2009
Re: How can i check if a Validator was raised?
I assume you mean how to write a test with LTAF to verify if a validator is showing or not. The easiest way to do this is to call the IsVisible() method that hangs off the HtmlElement. Here is a sample test that is included in our download that illustrates this: // Navigate to the login page HtmlPage page = new HtmlPage("Login.aspx"); // Verify validators are not visible Assert.IsFalse(page.Elements.Find("UserNameRequired").IsVisible()); Assert.IsFalse(page.Elements.Find("PasswordRequired"
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 9/19/2009
Re: Testing non-ajax forms
Oh, I see. There is an overload of the Click method that you want to use to wait until the postback is completed. page.Elements.Find("submitButton").Click(WaitFor.Postback); It's called "postback" simply because it is a more natural term for ASP.NET developers, but it's really wait until a new page is loaded to continue. Does that work for you? Regarding tools, unfortunately we don't have a test recorder like Selenium. LTAF is mantained by the ASP.NET QA team (we are
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 9/3/2009
Re: Testing non-ajax forms
Hello ! Yes, testing non-Ajax forms is supported. We use LTAF to test regular webforms, MVC and other sites that have no javascript at all. Could you explain a little bit more what scenario is not working for you? - Federico
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 8/31/2009
Re: Test using LTAF without altering the database
LTAF is a functional automation framework, but if I understand you right, you can accomplish this in several ways: 1. Prep the database before test execution. Usually done at testcase constructor, you can populate database with test data. 2. If you use Inversion of Control or a ServiceLocator patterns to create a data repository, you can set up your IoC container or ServiceLocator during your test constructor and then run your app. If you are using LTAF with tests in the same website this is very
Posted to
Lightweight Test Automation Framework
(Forum)
by
farmas
on 8/31/2009
Page 1 of 25 (246 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online