| test-create-edit | ||
| open | /plone | |
| clickAndWait | link=My Folder | |
| click | link=Add item | |
| clickAndWait | link=Source Code | |
| type | description | A script that does a grep, ignoring everything inside svn |
| type | title | sgrep |
| type | code | #!/usr/bin/python import sys import os from tempfile import mktemp args = sys.argv[1:] temp = mktemp() cmd = 'grep -ri %s * > %s' % (" ".join(args), temp) print cmd os.system(cmd) for line in open(temp, "rb").readlines(): if line.find('.svn') > -1: continue else: print line.strip() |
| select | language | label=Python |
| clickAndWait | form_submit | |
| verifyTextPresent | A script that does a grep, ignoring everything inside svn | |
| clickAndWait | link=Source | |
| goBackAndWait | ||
| verifyTextPresent | #!/usr/bin/python | |
| clickAndWait | link=Delete | |
| assertConfirmation | Do you really want to delete this item? | |