require to execute a script in between a test case
I have a scenario where, I have a RoR application, mysql, and there is a workflow, where

 - end user will follow that workflow, and register her software
 - software is local to end user, running on her machine 
 - in between this workflow, I make a http request to this software and it responds back
 - this hand shaking take place between rails app and that software
 - updating a couple of entries in db
 - and now I have to write a test case for this
 - that after this workflow done, 
  - proper entries are been added to db
  - checking whether workflow is executed successfully
  - plus hand shaking took place well, so a complete cycle 
 - And Am looking for a best approach here to go with

For now, we do not have prepared, or planning for a nice way of testing entire app here, but just preparing a few important test cases only. And this one is the first one of this kind. So far we were doing it manually.

Now being lazy, we want to automate this, and I am thinking of using watir. I have a software simulator for hand shaking, I could execute that simulator in watir and get this whole cycle tested.

Does this sound good that my watir/rb script is 

 - executing a script
 - checking db status
 - executing workflow
 - stopping that script
 - checking for db status

But obvious all ruby/rails units involved here would have their own unit test cases prepared apart, but I am interested in testing this whole cycle.

Any better suggestions, comments?









 
require to execute a script in between a test case
===

I have a scenario where, I have a RoR application, mysql, and there is a workflow, where

 - end user will follow that workflow, and register her software
 - software is local to end user, running on her machine 
 - in between this workflow, I make a http request to this software and it responds back
 - this hand shaking take place between rails app and that software
 - updating a couple of entries in db
 - and now I have to write a test case for this
 - that after this workflow done, 
  - proper entries are been added to db
  - checking whether workflow is executed successfully
  - plus hand shaking took place well, so a complete cycle 
 - And Am looking for a best approach here to go with

For now, we do not have prepared, or planning for a nice way of testing entire app here, but just preparing a few important test cases only. And this one is the first one of this kind. So far we were doing it manually.

Now being lazy, we want to automate this, and I am thinking of using watir. I have a software simulator for hand shaking, I could execute that simulator in watir and get this whole cycle tested.

Does this sound good that my watir/rb script is 

 - executing a script
 - checking db status
 - executing workflow
 - stopping that script
 - checking for db status

But obvious all ruby/rails units involved here would have their own unit test cases prepared apart, but I am interested in testing this whole cycle.

Any better suggestions, comments?









 