Commit 156e3afa authored by Roque Porchetto's avatar Roque Porchetto

scalaiblity_test: refactoring createSaleOrder test

parent 64a910df
......@@ -185,7 +185,7 @@ def createSaleOrder(result, browser):
assert browser.getTransitionMessage() == 'Data updated.'
sale_order_url = browser.url
# Go back to the Person page before validating
# Go back to the sale order page
browser.open(sale_order_url) # test
## Set Sale Trade conditions
......@@ -200,17 +200,17 @@ def createSaleOrder(result, browser):
# browser.mainForm.submit(name='Base_callDialogMethod:method',
# sleep=(TMIN_SLEEP, TMAX_SLEEP)))
# Add Sale order lines
#max_ite = random.randint(1,MAX_PRODUCT)
#for i in range (0, max_ite):
# browser.open(sale_order_url+"/view")
# addOrderLine(browser, my_title, result)
#Add Sale order lines
max_ite = random.randint(1,MAX_PRODUCT)
for i in range (0, max_ite):
browser.open(sale_order_url+"/view")
addOrderLine(browser, my_title, result)
addOrderLine(browser, my_title, result)
browser.open(my_order_sale_url)
# Validate the Sale Order
browser.mainForm.submitSelectWorkflow(value='plan_action')
result('Validate',
#result('Validate',
result('Cancel',
browser.mainForm.submitDialogConfirm(sleep=(TMIN_SLEEP, TMAX_SLEEP)))
assert browser.getTransitionMessage() == 'Status changed.'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment