Is there an way to have Assert and/or Should not stop if it fails?
-
bret (at watircraft)
- State changed from new to open
This is a good suggestion. We've had people ask about this before. As a comparison, the "verify" method in Watir::TestSuite provides this functionality.
-
bret (at watircraft)
- Assigned user set to bret (at watircraft)
-
bret (at watircraft)
- Milestone set to Backlog
Moving to backlog. Note that this won't be easy, and therefore probably won't be done soon.
-
Chuck van der Linden
Potentially I wonder if perhaps this is better raised with the Rspec/Cucumber folks?? since we'd be talking about changing the basic way that .should operates.
-
bret (at watircraft)
You are welcome to bring it up with the Rspec folks. It would require changing the way "should" works.
One alternate idea i've considered would be to create a new modal verb -- maybe "shall" -- and attach the new behavior to it.
Bret
-
bret (at watircraft)
You've raised this issue before and we've discussed it on this ticket. http://watircraft.lighthouseapp....
It would probably take me a couple of hours to research this and determine whether it would be hard or not.
Bret
On Wed, Apr 22, 2009 at 7:05 PM, chuckvdl sqapro@gmail.com wrote:
Is there a way that the framework could provide us with an alternative to .should that is similar to the 'verify' alternative that watir provides for 'assert'?
Something that would work like .should does, e.g. with the matchers and read nicely to make very clearly worded steps and tests? But would also keep going and do any other following validations in the same test? (and work with cucumber and rspec)
I I can't think of a really good name, the best I can come up with would be .ought , .oughtto , or .ought_to
Then again, I suppose in the spirit of my wife's detesting it when she finds the word 'should' in specs ("it should? well when shouldn't it? when wouldn't it? what happens if it doesn't?") I ought perhaps suggest the use of '.will' to indicate the behavior expectation is in no way fuzzy..
Yeah, I guess that works.. lets see
browser.element(attrib, 'value').will exist
yes, that's pretty clear isn't it?
would that be an easy doable thing, or a major non-trivial undertaking?
Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/wa...
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/wa... (Yahoo! ID required)
<*> To change settings via email: mailto:watir-framework-digest@yahoogrou... mailto:watir-framework-fullfeatured@yah...
<*> To unsubscribe from this group, send an email to: watir-framework-unsubscribe@yaho...
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
-- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog http://www.io.com/%257Ewazmo/blog Twitter, www.twitter.com/bpettichord GTalk: bpettichord@gmail.com
Ask Me About Watir Training www.watircraft.com/training
-- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord GTalk: bpettichord@gmail.com
Ask Me About Watir Training www.watircraft.com/training
-
Bret Pettichord
- Assigned user changed from bret (at watircraft) to Bret Pettichord
[responsible:ID#38130 bulk edit command]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.