Commit 07015294 authored by Roque Porchetto's avatar Roque Porchetto

scalaiblity_test: refactoring createSaleOrder test

parent d147965d
......@@ -125,15 +125,15 @@ def createSaleOrder(result, browser):
## Set Sale Trade conditions
# Click on the specified menu
result('GoToSaleTradeConditionRelations', browser.mainForm.getControl(
name="portal_selections/viewSearchRelatedDocumentDialog2:method").click())
assert browser.getTransitionMessage() == 'Please select one object.'
line_number = browser.getListboxPosition(SALE_TRADE_CONDITION_NAME, column_number=2)
# Check the box corresponding to line_number
browser.mainForm.getListboxControl(line_number=line_number, column_number=1).click()
result('SubmitSaleTradeConditionRelation',
browser.mainForm.submit(name='Base_callDialogMethod:method',
sleep=(TMIN_SLEEP, TMAX_SLEEP)))
#result('GoToSaleTradeConditionRelations', browser.mainForm.getControl(
# name="portal_selections/viewSearchRelatedDocumentDialog2:method").click())
#assert browser.getTransitionMessage() == 'Please select one object.'
#line_number = browser.getListboxPosition(SALE_TRADE_CONDITION_NAME, column_number=2)
## Check the box corresponding to line_number
#browser.mainForm.getListboxControl(line_number=line_number, column_number=1).click()
#result('SubmitSaleTradeConditionRelation',
# browser.mainForm.submit(name='Base_callDialogMethod:method',
# sleep=(TMIN_SLEEP, TMAX_SLEEP)))
# Add Sale order lines
max_ite = random.randint(1,MAX_PRODUCT)
......
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