Untitled

 avatar
unknown
plain_text
9 months ago
84 kB
7
Indexable
@API
@NAR
@FAR
@known-defect
@Regression
Feature: Quotation happy path scenarios

Background:
	Given automated test data from 'sap.QUPH;sap.QUPL;sap.willbeq' cleaned

Scenario Outline: Create quotation header only triggers information dialog
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I click on 'Save' button from toolbar and expect warning dialog
	Then I expect grid cell 'Customer ref.' to have text '<CustomerRef>'
	Then I expect grid cell 'Customer ID' to have text '<CustomerId>'
	Then I expect grid cell 'Customer name' to have text '<CustomerName>'
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
			| CustomerId | CustomerName                  | CustomerRef |
			| 0001007008 | INTERNACIONAL HISPACOLD, S.A. | custRef1    |

Scenario Outline: Create quotation, deactivate it and activate it
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I click on 'Save' button from toolbar
	Then I expect grid cell 'Customer ref.' to have text '<CustomerRef>'
	Then I expect grid cell 'Customer ID' to have text '<CustomerId>'
	Then I expect grid cell 'Customer name' to have text '<CustomerName>'
	When I click on 'Active/Deactive' button from toolbar
	Then Response code should be '200'
	When I click on 'Active/Deactive' button from toolbar
	Then Response code should be '200'
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
			| CustomerId | CustomerName                  | CustomerRef |
			| 0001007008 | INTERNACIONAL HISPACOLD, S.A. | custRef1    |

Scenario Outline: Create quotation line only triggers warning dialog
	When I navigate to 'Applications|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I enter value '<Cust. part numberH>' into text field 'Cust. part number'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect 'Warning' dialog to appear
	Then I expect 'Warning' dialog to contain text 'Customer Part Number not found.'

	Scenarios: 
			| CustomerId | CustomerName | CustomerRef | Cust. part numberH | Cust. part number |
			| 0001007007 | SAMMIC,S.L.  | custRef1    | Y                  | fff               |

Scenario Outline: Create quotation header and quotation line with Cust. part number N
	When I navigate to 'Applications|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	When I enter value '<Cust. part numberH>' into text field 'Cust. part number'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear

	When I enter value '<OfferedMaterial>' into text field 'Offered material'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	Then I expect field 'Cust. part number' to be empty
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Offered material' to have text '<OfferedMaterial>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
			| CustomerId | CustomerName | CustomerRef | Cust. part numberH | OfferedMaterial | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice |
			| 0001007007 | SAMMIC,S.L.  | custRef1    | N                  | 300005926       | 32230          | 1            | 1         | 1          | Gross price from PROD | 532.90     |

Scenario Outline: Create quotation header, deactivate it and activate it
	When I navigate to 'Applications|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I enter value '<Cust. part numberH>' into text field 'Cust. part number'
	When I click on 'Save' button from toolbar
	When I click on 'Active/Deactive' button from toolbar
	When I click on 'Active/Deactive' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
			| CustomerId | CustomerName | CustomerRef | Cust. part numberH | OfferedMaterial | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice |
			| 0001007007 | SAMMIC,S.L.  | custRef1    | N                   | 300005926       | 32230          | 1            | 1         | 1          | Gross price from PROD | 532.90     |

Scenario Outline: Create quotation header, archive it and return it from archive
	When I navigate to 'Applications|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I enter value '<Cust. part numberH>' into text field 'Cust. part number'
	When I click on 'Save' button from toolbar
	When I click on 'Move to archive' button from toolbar
	When I click on 'Show archive' button from toolbar
	When I click on 'Move from archive' button from toolbar
	Then I expect 'Quotation list' grid to appear

	Scenarios: 
			| CustomerId | CustomerName | CustomerRef | Cust. part numberH | 
			| 0001007007 | SAMMIC,S.L.  | custRef1    | N                  | 

Scenario Outline: Create quotation with one line with CPN search
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      |

#Scenario Outline: Create quotation with Hungarian Forint curency and check quotation line currency
#	When I navigate to 'Sales|Quotations'
#	Then I expect 'Quotation list' grid to appear
#	When I click on 'New' button from toolbar
#	Then I expect 'Quotation' form to appear
#	When I enter value '<CustomerId>' into text field 'Sold To'
#	Then I expect field 'CustomerName' to have text '<CustomerName>'
#	When I enter value '<CustomerRef>' into text field 'Customer ref.'
#	When I enter value '<Currency>' into text field 'Currency'
#	And I change tab to 'Lines'
#	And I click on 'New' button from toolbar
#	Then I expect 'Quotation line' form to appear
#	Then I expect field 'CurrencyTo' to have text '<Currency>'
#	When I enter value '<Cust. part number>' into text field 'Cust. part number'
#	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
#	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
#	When I enter value '<Offered material description>' into text field 'Offered material description'
#	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
#	When I enter value '<RequestedQty>' into text field 'Requested qty.'
#	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
#	When I enter value '<StockQty.>' into text field 'Stock qty.'
#	Then I expect field 'Total price' to have text '<TotalPrice>'
#	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
#	When I click on 'Save' button from toolbar
#	Then I expect 'Quotation' form to appear
#	Then I expect tab 'Lines' to be active tab
#	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
#	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
#	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
#	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
#	When I click on 'Save' button from toolbar
#	Then I expect 'Quotation list' grid to appear
#	When I click on 'Delete' button from toolbar
#	Then Response code should be '200'
#
#	Scenarios: 
#		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | Currency |
#		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | HUF      |

Scenario Outline: Create quotation with one line and custom rounded quantity
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then I expect 'Warning' dialog to appear
	Then I expect 'Warning' dialog to contain text 'Unusual profit margin (SPL)!'
	When I click 'ok' button on 'Warning' dialog
	And I remove current execution context
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	Then I expect grid cell 'Line #' to have text '10'
	When I click on 'Save' button from toolbar

	Then I expect 'Quotation list' grid to appear
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | 200032834         | 200032834       | 6203_01                    | 6203           | 210          | 210       | 210        | Gross price from PROD | 1386.00    |

Scenario Outline: Create quotation with one line, custom rounded quantity and recalculation
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	When I enter value 'L00070242' into text field 'Offered material'
	Then Response code should be '206'
	When I enter value '<OfferedMaterial>' into text field 'Offered material'
	When I select '<RoundedQtySelection>' from rounded quantity split button
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Start price source' to have text '<StartPriceSource>'
	Then I expect grid cell 'Line #' to have text '1'
	When I navigate to 'Quotation|Recalculate quotation'
	Then I expect 'Recalculate quotation' form to appear
	When I check a checkbox field 'Price'
	And I click on 'Recalculate' button
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	Then I expect grid cell 'Customer ref.' to have text '<CustomerRef>'
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName  | CustomerRef | Cust. part number | OfferedMaterial | SKFDesignation | RoundedQtySelection | RoundedQty | StartPriceSource      |
		| 0001008375 | SIEMENS, S.A. | custRefRC1  | L00070242         | 300000683       | 6205           | Package quantity: 1 | 1          | Gross price from PROD |

Scenario Outline: Create quotation with one line and will be line
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	When I change tab to 'Will be qty'
	And I click on 'New' button from toolbar
	When I enter value '<WillBeQty>' into text field 'Qty'
	Then I expect field 'Qty' to have text '<WillBeQty>'
	When I click on 'Save' button from toolbar
	Then I expect tab 'Quotation' to be active tab
	Then I expect tab 'Will be qty' to be active tab
	Then I expect grid cell 'Qty' to have text '<WillBeQty>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Line #' to have text '10'
	Then I expect grid cell 'Will Be Quantity' to have text '50'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | WillBeQty | TotalPrice | WillBeQuantity |
		| 0001007011 | SEAT, S.A.   | 200032881         | 200032881       | 6205_28                    | 6205           | 100          | 50        | 100        | 50        | 6000.00    | 50             |


Scenario Outline: Create quotation with one line, try to save will be line with invalid date
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	When I change tab to 'Will be qty'
	And I click on 'New' button from toolbar
	When I enter value '<WillBeQty>' into text field 'Qty'
	When I enter value '2021-02-08T15:35:07' into text field 'Date'
	When I click on 'Save' button from toolbar
	Then Response code should be '206'
	Then I expect 'Error' dialog to appear
	Then I expect 'Error' dialog to contain text '<ErrorDlgText>'

	Scenarios: 
		| CustomerId | CustomerName | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | WillBeQty | TotalPrice | WillBeQuantity | ErrorDlgText                                            |
		| 0001007011 | SEAT, S.A.   | 200032881         | 200032881       | 6205_28                    | 6205           | 100          | 50        | 100        | 50        | 6000.00    | 50             | Will be line date is less than or equal to current date |


Scenario Outline: Create quotation with one line, change will be comment and check will be qty.
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	When I enter value '<WillBeComment>' into text field 'WillBeComment'
	Then I expect field 'WillBeQuantity' to have text '<WillBeQuantity>'
	When I click on 'Save' button from toolbar


	Scenarios: 
		| CustomerId | CustomerName | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | TotalPrice | WillBeQuantity | WillBeComment |
		| 0001007011 | SEAT, S.A.   | 200032881         | 200032881       | 6205_28                    | 6205           | 100          | 50        | 100        | 6000.00    | 50             | Test          |  



Scenario Outline: Create quotation with one line, two will be lines and check requested qty.
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '12000.00'
	When I change tab to 'Will be qty'
	And I click on 'New' button from toolbar
	When I enter value '<WillBeQty>' into text field 'Qty'
	Then I expect field 'Qty' to have text '<WillBeQty>'
	When I click on 'Save' button from toolbar
	Then I expect tab 'Quotation' to be active tab
	Then I expect tab 'Will be qty' to be active tab
	Then I expect grid cell 'Qty' to have text '<WillBeQty>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Line #' to have text '10'
	Then I expect grid cell 'Will Be Quantity' to have text '50'
	Then I expect grid cell 'Total price' to have text '18000.00'
	When I click on 'Edit' button from toolbar
	When I change tab to 'Will be qty'
	And I click on 'New' button from toolbar
	When I enter value '<WillBeQty>' into text field 'Qty'
	Then I expect field 'Qty' to have text '<WillBeQty>'
	When I click on 'Save' button from toolbar
	Then I expect tab 'Quotation' to be active tab
	Then I expect tab 'Will be qty' to be active tab
	Then I expect grid cell 'Qty' to have text '<WillBeQty>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Line #' to have text '10'
	Then I expect grid cell 'Will Be Quantity' to have text '100'
	Then I expect grid cell 'Total price' to have text '24000.00'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'


	Scenarios: 
		| CustomerId | CustomerName | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | WillBeQty |
		| 0001007011 | SEAT, S.A.   | 200032881         | 200032881       | 6205_28                    | 6205           | 200          | 100       | 200        | 50        | 


#Scenario Outline: Apply filter for quotation grid
#	When I navigate to 'Sales|Quotations'
#	Then I expect 'Quotation list' grid to appear
#	When I apply filter list 'testfilter'
#	#Then I expect 'Filter' form to appear
#	#And I search record by field 'Name' with 'testfilter'
#
#	Scenarios: 
#			| CustomerId | CustomerName              | CustomerRef |
#			| 0001007115 | ESPECIALIDADES ELECTRICAS | custRef1    |

#Scenario: Create Quotations from DB using API
#	When I create demo quotations using Web API

Scenario Outline: Api Quotation - Mandatory field name is empty
	When POST /data request gets executed for 'Quotation'
	Then Data is successfully retrieved for 'Quotation'
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I click on 'Save' button from toolbar with empty mandatory field
	Then Response code should be '206'

Scenario Outline: Api Quotation - Download ESP report
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I click on 'Save' button from toolbar and expect warning dialog
	Then I expect grid cell 'Customer ref.' to have text '<CustomerRef>'
	Then I expect grid cell 'Customer ID' to have text '<CustomerId>'
	Then I expect grid cell 'Customer name' to have text '<CustomerName>'
	When I click on 'All print tags' button from toolbar
	When I execute 'Download ESP report' action against selected document
	Then Response code should be '200'

Scenarios: 
			| CustomerId | CustomerName             | CustomerRef |
			| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |

Scenario Outline: Api Quotation - Download ENG report
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I click on 'Save' button from toolbar and expect warning dialog
	Then I expect grid cell 'Customer ref.' to have text '<CustomerRef>'
	Then I expect grid cell 'Customer ID' to have text '<CustomerId>'
	Then I expect grid cell 'Customer name' to have text '<CustomerName>'
	When I click on 'All print tags' button from toolbar
	When I execute 'Download ENG report' action against selected document
	Then Response code should be '200'
	
Scenarios: 
			| CustomerId | CustomerName             | CustomerRef |
			| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |

Scenario Outline: Api Quotation - Create and send email
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I click on 'Save' button from toolbar and expect warning dialog
	Then I expect grid cell 'Customer ref.' to have text '<CustomerRef>'
	Then I expect grid cell 'Customer ID' to have text '<CustomerId>'
	Then I expect grid cell 'Customer name' to have text '<CustomerName>'
	When I click on 'All print tags' button from toolbar
	Then Response code should be '200'
	When I change context to 'Email'
	When I click on 'New' button from toolbar
	When I enter value '<SenderAddress>' into text field 'SenderAddress'
	When I enter value '<RecipientAddress>' into text field 'RecipientAddress'
	When I enter value '<CarbonCopyAddress>' into text field 'CarbonCopyAddress'
	When I enter value '<BlindCarbonCopyAddress>' into text field 'BlindCarbonCopyAddress'
	When I enter value '<Message>' into text field 'Message'
	When I click on 'Send' button from toolbar

	Scenarios: 
			| CustomerId | CustomerName             | CustomerRef | SenderAddress | RecipientAddress | CarbonCopyAddress | BlindCarbonCopyAddress | Message |
			| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | admin@skf.com | admin@skf.com    | admin@skf.com     | admin@skf.com          | test    |
@known-defect
Scenario Outline: Api Quotation - Create and send fax
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I click on 'Save' button from toolbar and expect warning dialog
	Then I expect grid cell 'Customer ref.' to have text '<CustomerRef>'
	Then I expect grid cell 'Customer ID' to have text '<CustomerId>'
	Then I expect grid cell 'Customer name' to have text '<CustomerName>'
	When I click on 'All print tags' button from toolbar
	Then Response code should be '200'
	When I change context to 'Fax'
	When I click on 'New' button from toolbar
	When I enter value '<CustomerContactFirstName>' into text field 'CustomerContactFirstName'
	When I enter value '<FaxNumber>' into text field 'FaxNumber'
	When I enter value '<Message>' into text field 'Message'
	When I click on 'Send to fax' button from toolbar
	Then Response code should be '206'

	Scenarios: 
			| CustomerId | CustomerName             | CustomerRef | CustomerContactFirstName | FaxNumber |
			| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | Test Montajes            | TEST      |                          

Scenario Outline: Price deacrise/incrise
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I change context to 'Document change price'
	When I click on Price decrease/increase for grid with id '<Grid id>'
	When I enter value 'test' into text field 'ProductDesignation'
	When I enter value 'test' into text field 'AlternativeDesignation'
	When I enter value 'test' into text field 'CustomerDesignation'
	When I enter value '1F' into text field 'StrategicProductCode'
	When I enter value 'Rollers, SRB' into text field 'StrategicProductCodeDescription'
	When I enter value 'A01' into text field 'MatrixCode'
	When I enter value '1014' into text field 'IntegratedProductStatistics'
	When I enter value 'DGBB OTROS AROS Y ARANDEL' into text field 'IntegratedProductStatisticsDescription'
	When I enter value 'Total price' into text field 'FirstChoiceLineColumn'
	When I enter value '10' into text field 'FirstFixedValue'
	When I click on 'Change quotation line price' button from toolbar
	Then Response code should be '206'
Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | TotalPrice | Grid id                           |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | 86.65      | QUPH.QuotationGridView.MasterGrid |

Scenario Outline: Copy quotation
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	Then I expect grid cell 'Customer ref.' to have text '<CustomerRef>'
	Then I expect grid cell 'Customer ID' to have text '<CustomerId>'
	Then I expect grid cell 'Customer name' to have text '<CustomerName>'
	When I click on 'Copy' button from toolbar
	When I click on 'Copy quotation' button from toolbar
	Then Response code should be '200'
	When I click on 'Details' button from toolbar
	Then I expect 'Details' form to appear
	Then I expect field 'Sold To' to have text '<CustomerId>'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	Then I expect field 'Customer ref.' to have text '<CustomerRef>'
	Then I expect field 'M. St.' to have text '<MainStatus>'
	Then I expect field 'S. St.' to have text '<SubStatus>'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | MainStatus | SubStatus |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | R          | R         |

@known-defect
#Dialog is not displayed, reported to the BE
Scenario Outline: Create quotation with two lines and trigger increment the quotation version dialog
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then Response code should be '200'
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then Response code should be '200'
	When I click on 'Edit' button from toolbar
	When I enter value '<Legalization>' into text field 'Legalization'
	When I click on 'Save' button from toolbar
	Then Response code should be '206'
	Then I expect 'Question' dialog to appear
	Then I expect 'Question' dialog to contain text '<QuestionDlgText>'
	When I click 'yes' button on 'Question' dialog
	Then I expect grid cell 'DocumentVersion' to have text 'DocumentVersion'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | QuestionDlgText                                 | DocumentVersion | Legalization |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | Do you wish to increment the quotation version? | 1               | 10           |
		
@known-defect
#Reported to BE, on save we are getting 200 instead of 206
Scenario Outline: Create new quotation as a new version
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'Edit' button from toolbar
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then Response code should be '206'
	Then I expect 'Question' dialog to appear
	Then I expect 'Question' dialog to contain text '<QuestionDlgText>'
	When I click 'yes' button on 'Question' dialog
	Then I expect grid cell 'DocumentVersion' to have text 'DocumentVersion'
	When I change context to 'Quotation version'
	When I execute 'Version history' action against selected document
	When I click on 'Copy' button from toolbar
	Then I expect 'Question' dialog to appear
	Then I expect 'Question' dialog to contain text '<QuestionDlgText1>'
	When I click 'New' button on 'Question' dialog
	Then I expect field 'M. St.' to have text 'R'
	Then I expect field 'S. St.' to have text 'R'


	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | QuestionDlgText                                 | QuestionDlgText1                                                                          |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | Do you wish to increment the quotation version? | Do you want to create a new document, or copy over the current document as a new version? |

Scenario Outline: Create quotation with two lines and reorder them
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	When I execute 'Reorder lines' action against selected document
	Then Response code should be '206'
	Then I expect 'Question' dialog to appear
	Then I expect 'Question' dialog to contain text '<QuestionDlgText>'
	When I click 'yes' button on 'Question' dialog
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | QuestionDlgText                     |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | Reorder lines in current quotation? |



Scenario Outline: Create quotation line with Offer type set to “R”
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<OfferType>' into text field 'OfferType'
	Then I expect field 'Comment' to have text '<Comment>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	Then I expect grid cell 'OfferType' to have text '<OfferType>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | OfferType | Comment                                         |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | R         | <O>Este producto reemplaza a otro obsoleto.</O> |


Scenario Outline: Create quotation line with Offer type set to “O”
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<OfferType>' into text field 'OfferType'
	Then I expect field 'Comment' to have text '<Comment>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'OfferType' to have text '<OfferType>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | RoundedQty | StartPriceSource      | TotalPrice | OfferType | Comment                   |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1          | Gross price from PROD | 0          | O         | <O>Producto Obsoleto.</O> |


Scenario Outline: Create quotation line with Offer type set to “F”
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<OfferType>' into text field 'OfferType'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	Then I expect grid cell 'OfferType' to have text '<OfferType>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | OfferType | 
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | F         | 

@known-defect
Scenario Outline: Create quotation and quotation economos line
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Eoconomos Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Eoconomos Lines' form to appear
	Then I expect field 'Line #' to have text '10'
	Then I expect field 'LineType' to have text 'E'
	Then I expect field 'LineStatus' to have text 'EH'
	Then I expect field 'CustomerGroup' to have text 'SL'
	Then I expect field 'LeadTime' to have text '1'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	When I click on 'Details' button from toolbar
	Then I expect 'Details' form to appear
	Then I expect field 'Line #' to have text '10'
	Then I expect field 'LineType' to have text 'E'
	Then I expect field 'LineStatus' to have text 'EH'
	Then I expect field 'CustomerGroup' to have text 'SL'
	Then I expect field 'LeadTime' to have text '1'
	When I click on 'Delete' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | 
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 

@known-defect
Scenario Outline: Edit economos product line search 
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Eoconomos Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Eoconomos Lines' form to appear
	When I change tab to 'Search Economos Line'
	And I click on 'New' button from toolbar
	Then I expect field value 'CreationDateFrom' to be a specific date
	Then I expect field value 'CreationDateTo' to be a specific date
	Then I expect field 'CustomerId' to have text '<CustomerId>'


	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | 
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 

@known-defect
Scenario Outline: Get Configuration for Economos lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Eoconomos Lines'
	When I get grid 'Configuration'
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |


Scenario Outline: Get Configuration for Quotation lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	When I get grid 'Configuration'
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |

Scenario Outline: Get Quick Search Columns for Economos lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Economos Lines'
	When I get 'Quick search columns'
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |

Scenario Outline: Get Quick Search Columns for Quotation lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	When I get 'Quick search columns'
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |

Scenario Outline: Get Count Of Grid Records for Economos lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Economos Lines'
	When I get 'Count' of records
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |

Scenario Outline: Get Count Of Grid Records for Quotation lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	When I get 'Count' of records
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |

@known-defect
# TODO: Test error - how do we know that this is economos line and how lines are created
Scenario Outline: Get Grid menu items for Economos lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Economos Lines'
	When I get 'Grid menu items' for record
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |

		
Scenario Outline: Get Grid menu items for record for Quotation lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	When I get 'Grid menu items' for record
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | ColumnName | Value |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | LineNumber | 10    |

@known-defect
Scenario Outline: Find Economos line
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Economos Lines'
	When I click on 'New' button from toolbar
	When I click on 'Save' button from toolbar
	Then Response code should be '200'
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Economos Lines' to be active tab
	When I click on Find button from toolbar with column name '<ColumnName>' and value '<Value>'
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | ColumnName | Value |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | Status     | EH    |


Scenario Outline: Find Quotation line
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	When I click on Find button from toolbar with column name '<ColumnName>' and value '<Value>'
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | ColumnName | Value |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | LineNumber | 10    |

@known-defect
Scenario Outline: Quick search for Economos lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Economos Lines'
	When I click on 'New' button from toolbar
	When I click on 'Save' button from toolbar
	Then Response code should be '200'
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Economos Lines' to be active tab
	When I click on Quick search button from toolbar with column name '<ColumnName>' and value '<Value>'
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | ColumnName | Value |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | Status     | EH    |

Scenario Outline: Quick search for quotation lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	When I click on Quick search button from toolbar with column name '<ColumnName>' and value '<Value>'
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | ColumnName | Value |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | LineNumber | 10    |

Scenario Outline: Grid info for Economos lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Economos Lines'
	When I click on 'Grid info' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |

Scenario Outline: Grid info Quotation lines
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	When I click on 'Grid info' button from toolbar
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   |


Scenario Outline: Create two quotations with lines and merge them
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation list' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotations' grid to appear
	When I choose document records for copy
	When I change main header for merge document records
	When I merge documents
	Then Response code should be '200'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      |



Scenario Outline: Merge two quotations without main document 
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I change tab to 'Lines'
	And I click on 'New' button from toolbar
	Then I expect 'Quotation line' form to appear
	When I enter value '<Cust. part number>' into text field 'Cust. part number'
	Then I expect field 'Offered material' to have text '<OfferedMaterial>'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<Offered material description>' into text field 'Offered material description'
	Then I expect field 'SKF designation' to have text '<SKFDesignation>'
	When I enter value '<RequestedQty>' into text field 'Requested qty.'
	Then I expect field 'Rounded quantity' to have text '<RoundedQty>'
	When I enter value '<StockQty.>' into text field 'Stock qty.'
	Then I expect field 'Total price' to have text '<TotalPrice>'
	#Then I expect field 'Start price source' to have text '<StartPriceSource>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotation' form to appear
	Then I expect tab 'Lines' to be active tab
	Then I expect grid cell 'Cust. part number' to have text '<Cust. part number>'
	Then I expect grid cell 'Rounded quantity' to have text '<RoundedQty>'
	Then I expect grid cell 'Stock qty.' to have text '<StockQty.>'
	Then I expect grid cell 'Total price' to have text '<TotalPrice>'
	When I click on 'Save' button from toolbar
	Then I expect 'Quotations' grid to appear
	When I choose document records for copy
	When I merge documents
	Then Response code should be '206'
	Then I expect 'Warning' dialog to appear
	Then I expect 'Warning' dialog to contain text '<QuestionDlgText>'

	Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | Cust. part number | OfferedMaterial | OfferedMaterialDescription | SKFDesignation | RequestedQty | StockQty. | RoundedQty | StartPriceSource      | TotalPrice | QuestionDlgText               |
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 300000683         | 300000683       | 639058 A/Q_12              | 639058 A/Q     | 1            | 1         | 1          | Gross price from PROD | 86.65      | Please, select main document. |


Scenario Outline: Api Quotation - Activate, deactivate and delete multiple records at once
	When I navigate to 'Sales|Quotations'
	Then I expect 'Quotations' grid to appear
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I click on 'Save' button from toolbar
	When I click on 'New' button from toolbar
	Then I expect 'Quotation' form to appear
	When I enter value '<CustomerId>' into text field 'Sold To'
	Then I expect field 'CustomerName' to have text '<CustomerName>'
	When I enter value '<CustomerRef>' into text field 'Customer ref.'
	And I click on 'Save' button from toolbar
	Then I expect 'Quotations' grid to appear
	When I choose multiple records and click on 'Deactivate' button from toolbar
	When I choose multiple records and click on 'Activate' button from toolbar
	When I choose multiple records and click on 'Delete' button from toolbar
	Then Response code should be '200'

Scenarios: 
		| CustomerId | CustomerName             | CustomerRef | 
		| 0001007001 | MONTAJES Y RADIADOS, S.A | custRefL1   | 
Editor is loading...
Leave a Comment