Commit 510b9fdb authored by Jérome Perrin's avatar Jérome Perrin

More tests for mass workflow actions, now tests invert mode selection and checked uids.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17978 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent df76fb35
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test Folder Workflow Action Checked Selection</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test Folder Workflow Action Checked Selection</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n
<tr>\n
<td>open</td>\n
<td tal:content="string:${here/portal_url}/foo_module/1/Foo_validate">Validate the first document</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Validated</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/FooModule_createObjects?num:int=2&amp;start:int=2</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/foo_module/view">/erp5/foo_module/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[1]/input</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Mass Workflow Transition</td>\n
</tr>\n
\n
<!-- we have a listbox with 1 line, for 1 Draft Foo -->\n
<tr>\n
<td>assertText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]/a</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>assertText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Workflow Modification in Progress</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<!-- We\'ll check everything else (workflow history, comments, etc) in a python\n
script. \n
This is the same script as Filtered Selection\n
-->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/Zuite_testFolderWorkflowActionFilteredSelectionCheckWorkflowHistory</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>result</td>\n
<td>OK</td>\n
</tr>\n
\n
\n
</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testFolderWorkflowActionCheckedUidSelection</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -49,12 +49,12 @@
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test Folder Workflow Action</title>\n
<title>Test Folder Workflow Action Filtered Selection</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test Folder Workflow Action</td></tr>\n
<tr><td rowspan="1" colspan="3">Test Folder Workflow Action Filtered Selection</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n
<tr>\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test Folder Workflow Action, multiple actions in invert mode</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test Folder Workflow Action, multiple actions in invert mode</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n
<tr>\n
<td>open</td>\n
<td tal:content="string:${here/portal_url}/foo_module/1/Foo_validate">Validate the first document</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Validated</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/FooModule_createObjects?num:int=2&amp;start:int=2</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/foo_module/view">/erp5/foo_module/view</td>\n
<td></td>\n
</tr>\n
\n
<!--select everything, and then this test is the same that\n
testFolderWorkflowActionInvertModeMultipleActions -->\n
\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]/input</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[1]/input</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[1]/input</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_filter:method</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Mass Workflow Transition</td>\n
</tr>\n
\n
<!-- we have a listbox with 2 lines, one for 2 Draft Foos, the other for 1\n
Validated Foo -->\n
<tr>\n
<td>assertText</td>\n
<td>listbox_record_number</td>\n
<td>2 record(s)</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]/a</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
</tr>\n
\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[1]/a</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[3]/a</td>\n
<td>Validated</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[5]/select</td>\n
<td>label=Invalidate Action</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
<td></td>\n
</tr>\n
\n
<!-- Now we are on a listbox showing *all* documents we are about to process.\n
Note that if a document cannot be processed, it\'s not shown in this list\n
-->\n
<tr>\n
<td>assertText</td>\n
<td>listbox_record_number</td>\n
<td>3 record(s)</td>\n
</tr>\n
<!-- This listbox is a proxy to the module listbox, so it has the same title\n
and the same columns. -->\n
<tr>\n
<td>assertText</td>\n
<td>listbox_title</td>\n
<td>exact:Foos:</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</td>\n
<td>Title 2</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]</td>\n
<td>Validate Action</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[2]</td>\n
<td>Title 3</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]</td>\n
<td>Validate Action</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[2]</td>\n
<td>Title 1</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[4]</td>\n
<td>Invalidate Action</td>\n
</tr>\n
\n
<tr>\n
<td>assertValue</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Workflow Modification in Progress</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<!-- We\'ll check everything else (workflow history, comments, etc) in a python\n
script. -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/Zuite_testFolderWorkflowActionMultipleActionsCheckWorkflowHistory</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>result</td>\n
<td>OK</td>\n
</tr>\n
\n
\n
</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testFolderWorkflowActionInvertModeMultipleActions</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test Folder Workflow Action Invert Mode Selection</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test Folder Workflow Action Invert Mode\n
Selection</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n
<tr>\n
<td>open</td>\n
<td tal:content="string:${here/portal_url}/foo_module/1/Foo_validate">Validate the first document</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Validated</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/FooModule_createObjects?num:int=2&amp;start:int=2</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/foo_module/view">/erp5/foo_module/view</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[1]/input</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_filter:method</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Mass Workflow Transition</td>\n
</tr>\n
\n
<!-- we have a listbox with 1 line, for 1 Draft Foo -->\n
<tr>\n
<td>assertText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]/a</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>assertText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
<td></td>\n
</tr>\n
\n
\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Workflow Modification in Progress</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/Zuite_waitForActivities</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
</tr>\n
<!-- We\'ll check everything else (workflow history, comments, etc) in a python\n
script. \n
This is the same script as Filtered Selection\n
-->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/Zuite_testFolderWorkflowActionFilteredSelectionCheckWorkflowHistory</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>result</td>\n
<td>OK</td>\n
</tr>\n
\n
\n
</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testFolderWorkflowActionInvertModeSelection</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
290
\ No newline at end of file
293
\ No newline at end of file
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