Commit 14014cd1 authored by Rafael Monnerat's avatar Rafael Monnerat

Included API to extract Selenium Test Code from Test Page

The code was moved from erp5_ui_test_core
parent 8f7beefd
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ExternalMethod" module="Products.ExternalMethod.ExternalMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_function</string> </key>
<value> <string>extractTest</string> </value>
</item>
<item>
<key> <string>_module</string> </key>
<value> <string>ERP5RunMyDocs</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TestPage_extractTest</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Extract Zelenium Test from tutorial</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </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_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<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>_body</string> </key>
<value> <string>return context.TestPage_extractTest(context.getTitle(), context.getTextContent())\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TestPage_getSeleniumTest</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -56,7 +56,7 @@ reference = context.getReference()\n ...@@ -56,7 +56,7 @@ reference = context.getReference()\n
if reference not in [None, \'\']:\n if reference not in [None, \'\']:\n
zuite_id = reference\n zuite_id = reference\n
\n \n
return context.Zuite_createAndLaunchSeleniumTest(text=context.getTextContent(),\n return context.Zuite_createAndLaunchSeleniumTest(text=context.TestPage_getSeleniumTest(),\n
title=context.getTitle(), \n title=context.getTitle(), \n
zuite_id=zuite_id,\n zuite_id=zuite_id,\n
test_id=test_id)\n test_id=test_id)\n
......
50 51
\ No newline at end of file \ 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