Exercise 18


Q1:

Assume you've done everything on the Java side to make the following executable test run through WebART:

 public class TaskStoryTest {    public void testCreate() {        login("bob","bobspassword");       assertTrue( addTask( "User Gui",                            "Create GUI",                            "Bob",                            "2",             "3",                            "Not Started" ) );    } } 

Indicate the changes that would be necessary to the WebART XTRACKIF.

Q2:

Assume you obtained the following statements by capturing the process of adding a task to XTrack manually:

 >0>$get(pPage,        "http://${zzorghostzz}/.../createtask.htm")[]; form.pPage.0.name.tb.0[0] = "User Gui"; form.pPage.0.description.tb.1[0] = "Create GUI"; form.pPage.0.assignee.tb.2[0] = "Bob"; form.pPage.0.estimate.tb.3[0] = "2"; form.pPage.0.actual.tb.4[0] = "3"; form.pPage.0.status.tb.5[0] = "Not Started"; form.pPage.0.Submit.su.0[0] = "Create"; >7>$submit(pPage,pPage,0)[]; 

Using login in this chapter as a model, write the complete addTask subscript module.



Testing Extreme Programming
Testing Extreme Programming
ISBN: 0321113551
EAN: 2147483647
Year: 2005
Pages: 238

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net