Insertion of recorded segments into existing test scripts

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Insertion of recorded segments into existing test scripts

Postby brs » Mon Mar 19, 2007 8:24 am

In looking through your documentation, I do not think Window Tester currently has the option of adding segments of recorded user action in an existing Java test script. Is this accurate?

If so, are you planning on introducing this functionality at some point in the future?

Thanks,
B.
brs
 
Posts: 26
Joined: Sun Mar 11, 2007 6:05 am
Location: Chichester, UK

Postby Phil Quitslund » Mon Mar 19, 2007 12:14 pm

You are right that this is currently not supported. (Another feature on the list!) That said, while we are considering it, we're not sure it's recommended. The preferred approach is to generate small test pieces that can be refactored into reusable pieces. If you do this, you should never be inserting recorded actions directly into a scenario. Instead, small bits of functionality (e.g, "create a project") are put into helper methods that are then chained into scenarios or use cases. The recorder should just be used to create these helpers.
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Postby brs » Mon Mar 19, 2007 3:43 pm

Phil,

Thanks for your reply and advice on a nice approach (similar, I believe, to your example EclipseTest test case).

Regards,
B.
brs
 
Posts: 26
Joined: Sun Mar 11, 2007 6:05 am
Location: Chichester, UK

Postby Phil Quitslund » Mon Mar 19, 2007 5:42 pm

You're welcome!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest