Hi Mauro,
Yes, I need some help for understand how could I struture this kind of
scenario.
I tried to do a simplified version of our scenario. I've attached a
image with some classes and a simple view of our user interface.
In our user interface we have two Tab Folders: first one for the Master
Class(Order), and the second one for the Detail Class(Order Items)
Repair that:
- I have only one SAVE button for both Tab Folders. It means that it
will save both classes on same transaction context;
- depends on the choiced product we could have diferent Category and so,
diferent text fields for user to fill;
- Products showed on Itens folders depends on Supplier selected on Order
folder;
- total is calculated by sum all itens prices;
I tried to write the scenario but I get lost, and I couldn't figure out
yet how could I do it.
Could you help me with that?
Thank you and best regards
Cristiano
Scenario: User from Purchasing Department wants to order some products
Given that user is on order page
Given user is on order folder
And UserId is <id>
And user fills Date with <date>
When supplier choosed is <supplier>
Then product list will be <product list>
Given user is on itens folder
When user add item 1
And choose product <product1>
The categories fields <fields1> and price <price1> will show up
When user saves the order
Then Total should be calculated to <total>
Examples:
|id|date|supplier|total|
|0001|2009/09/30|Korn Flate|1000.00|
Mauro Talevi escreveu:
Mauro Talevi wrote:
Hi Cristiano,
Cristiano Gavião wrote:
Hi Mauro,
Yes, I'm dealing with a web application. And I already took a look
on these examples.
My doubt was because I was trying to write a kind of scenarios that
I could have two Example Tables: one for master and one for its
details. And I couldn't figure it out yet how I can do that.
Only one examples is allowed per scenario, but you can have multiple
scenarios in the same textual scenario file. Each scenario can use
its own examples table.
BTW, what use case would you see for requiring two examples table?
If you post a simplified version of your scenario, we can perhaps help
you to work the best way to structure it.
Cheers
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email