Last post Sep 03, 2009 10:16 PM by farmas
Aug 30, 2009 02:18 PM|fabiomilheiro|LINK
I have seen that LTAF is great to test Ajax forms, but can we also test non-Ajax forms with it?
I tried to do that, but I cannot find the url of the second form (I need to know it in order to test if the test is successful or not)
Aug 31, 2009 05:52 AM|akmsaeea|LINK
Pls refer these links::
Aug 31, 2009 12:45 PM|fabiomilheiro|LINK
Thank you for your response, but none of these links provide a yes or a no to the question.
Have you tried to test non-ajax forms?
Sep 01, 2009 03:11 AM|farmas|LINK
Sep 03, 2009 10:02 PM|fabiomilheiro|LINK
Frederico, let's imagine an Ajax form that calculates your age and the following test:
public void Can_Calculate_Age()
HtmlPage page = new HtmlPage("/AgeCalculator");
var resultsElement = page.Elements.Find("results");
resultsElement.WaitForInnerText("Your age is approximately: 78", ajaxRequestTimeoutSeconds);
As you can see, this test verifies that the result (in this case, presented in a div) is "Your age is approximately: 78".
What if this form is non-Ajax?
How do you wait for the result page to load and how do you find the url of that page?
By they way, is there any tools native to Visual Studio 2008 that is similar?
Can we record user experience with LTAF or that native tool I imagine as it is the case with the selenium plug-in for Firefox?
Thank you for taking the trouble to answer this questions!
Sep 03, 2009 10:16 PM|farmas|LINK
Oh, I see. There is an overload of the Click method that you want to use to wait until the postback is completed.
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 not full time devs of LTAF :P) and we haven't seen the need to create one yet.
Thanks for your interest in LTAF, let me know if you have any more questions or suggestions on how we can improve the framework.