Closed GoogleCodeExporter closed 9 years ago
I don't want this to be included in Robot standard libraries for following
reasons:
1) I don't want to encourage users to create dependencies between tests. I know
you cannot always avoid them, but having built-in functionality like this would
make it look like it is a good practice.
2) If the usage is changed so that tests that are dependencies for others
register themselves, this is easy to implement using custom keywords. This
approach actually has two nice benefits compared to handling dependencies
automatically:
a) It is explicit which test case is a dependency. That is important when
editing such a test later.
b) Single test can have multiple dependency points. It could register a
dependency when e.g. when an account is created and again when the user is
activated.
Original comment by pekka.klarck
on 15 May 2014 at 9:49
If you're concerned about encouraging bad behavior, you could have robot
generate a warning whenever that keyword was used. You could provide a command
line option to silence the warning, which means the user has to explicitly
acknowledge that using that keyword is a bad practice (eg:
--no-warn-on-bad-practices)
I don't understand the idea of a test registering itself as a dependency for
something else. That means if you write a new test case that depends on an old
test case, you must also modify that old test case to register itself. That
seems like more work for the tester.
I understand your concerns. It's just that in my experience now in my third
company using Robot, dependencies are a fact of life. I'd rather document them
then have them hidden from view. Plus, the information can be invaluable when
trying to parallelize a test run.
Original comment by bryan.oa...@gmail.com
on 15 May 2014 at 10:29
Original issue reported on code.google.com by
bryan.oa...@gmail.com
on 14 May 2014 at 9:30Attachments: