History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: WT-350
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Assignee: Marc Guillemot
Reporter: Marc Guillemot
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
WebTest

Use step nested text as equivalent for "most" significant attribute for nicer DSL in Groovy

Created: 13/Nov/07 13:33:15   Updated: 14/Nov/07 11:53:02
Affects Version/s: 2.5
Fix Version/s: 2.6


 Description   
When writing tests in Groovy, it would be nicer when many steps accepts nested text for their "default value".

Ex:
verifyTitle(text: "my page title") // currently

verifyTitle("my page title") // would be nice
verifyTitle(regex: true, "my page.*title") // would be nice

This could be used In XML format too but wouldn't be really useful as it required more text:
<verifyTitle text="my page title"/>
vs
<verifyTitle>my page title</verifyTitle>

This would be nice for many steps, In a first time this issue concerns:
  Step nested text equivalent
clickButton label
clickLink label
followFrame name
invoke url (post content when url specified as attribute)
selectForm name
verifyTitle text
verifyText text
verifyDocumentURL text

 All   Comments   Change History      Sort Order:
Comment by Marc Guillemot [14/Nov/07 11:53:02]
Implemented in build 1638.