Cristiano Gavião wrote:
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|


One think to note on the fly: the table examples parameters MUST be all provided in a single row for a given scenario. In your case, for example you're not providing data columns for <product1>, <fields1> and <price1>.



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to