** New Substeps Release **

120 views
Skip to first unread message

Ian Moore

unread,
Oct 24, 2013, 11:46:48 AM10/24/13
to subs...@googlegroups.com
I'm happy to announce another Substeps release (1.1.1) is now available in Maven central.  Please note there are some minor breaking changes in webriver-substeps, further details below.

Here's a summary of the major changes:
substeps-core
* bug around single word substep definitions - the parser would fail to resolve them
* default execution report title if none provided in the pom
* parsing Backgrounds on Windows resulted in an IndexOutOfBounds - this has now been fixed
* Addition of source file and line number to UnimplementedStepException

in webdriver-susbsteps
* New step implementations
FindParentByTagAndAttributes....
FindFirstChild ByTagAndAttributes...
Find nth ByTagAndAttributes....
* AssertPageSourceContains can now handle checking for quoted strings, eg checking javascript values or return values from ReSTful calls.
* Refactored some methods out of this project into the api
* selenium 2.35.0 dependency
* Ability to reset webdriver between scenarios rather than close and restart
* WebDriverFactory customisation to allow customisation of the creation and initialisation of the WebDriver instance

The breaking changes are as follows:

* At the request of our substeps users we decided to clarify some Assertions and Finders, with the result that we've removed Asserts that are simply Finders, and also honed the wording of some steps to be more precise.
Changes to steps are:
    AssertTagElementStartsWithText -> FindFirstTagElementStartingWithText
    AssertValue id msg_id text = "Hello World" -> FindById msg_id and text = "Hello World"
    AssertChildElementsContainText xpath="li//a" text = "Log Out" -> FindFirstChildElementContainingText xpath="li//a" text = "Log Out"
    AssertTagElementContainsText tag="ul" text="list item itext" ->  FindFirstTagElementContainingText tag="ul" text="list item itext"
    FindTagElementContainingText ... -> FindFirstTagElementContainingText ...

Apologies for any breakages, hopefully any problems can be resolved by a find and replace.  After some consideration we thought it was better to make the steps reflect what they were actually doing and to remove any ambiguity.

There's also a substeps-database project which allows you to run sql queries from substeps.  Result sets can be checked, values stashed for comparison later etc.  We'll be updating the substeps website soon with more details.

Any issues or suggestions please feel free to raise here or get in touch!
Kind regards
Ian Moore
Reply all
Reply to author
Forward
0 new messages