# Integration Testing

**URL:** <https://www.ruby-forum.com/t/integration-testing/103588>\
**Category:** Rails\
**Created:** [May 8, 2007, 5:16am UTC](https://www.ruby-forum.com/t/integration-testing/103588 "2007-05-08T05:16:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Traci\_Reynolds](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e5b9ba/32.png) [@Traci\_Reynolds](https://www.ruby-forum.com/u/Traci_Reynolds)\
**Post date:** [May 8, 2007, 5:16am UTC](https://www.ruby-forum.com/t/integration-testing/103588/1 "2007-05-08T05:16:38Z")

</div>

I’m using integration testing, with multiple sessions. For the typical  
example, a module extends a session, like here:

[http://weblog.jamisbuck.org/2006/3/9/integration-testing-in-rails-1-1](http://weblog.jamisbuck.org/2006/3/9/integration-testing-in-rails-1-1)

For my testing, I would like to emulate the web interface with ruby  
objects. I’d like the test statements to look like

bob.goes\_to\_login  
bob.goes\_to\_main\_page  
bob.main\_window.click(photos(:photo\_of\_bob))  
bob.main\_window.menu.click(menus(:file))

I’m not clear on how I can get the structure above using modules,  
methods and classes.

Any help appreciated!
