Ability to set arguments for a test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
selenium-simple-test |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
...without complicating invocation. Things like optionally setting the base_url for the tests (which would override some default), or an IMAP password etc.
{{{
13:31 < noodles> mfoord: do you know if there'll be support for optional arguments with sst? (setting the base_u
rl or gmail password from the command-line come to mind)
13:36 < mfoord> noodles: there will be whatever we add
13:37 < mfoord> noodles: I know that doesn't specifically answer your question...
13:37 < noodles> mfoord: yeah, I'd be happy to go in and try to add it (when it's a priority), I just wasn't sur
e if there were already plans from you or cory.
13:37 < mfoord> noodles: we must use this opportunity to make sst more capable though - instead of just writing
very hacky tests that work around its deficiencies
13:37 < mfoord> noodles: what could be useful is a way to pass command line args through to the scripts
13:38 < mfoord> noodles: maybe ./sst-run -x:opt1=thing -X:opt2=thing
13:38 < mfoord> noodles: and any option prefixed with an x: is put into a global array that scripts can read
13:39 < mfoord> noodles: and then a utility function in the script can read those options and act appropriately
13:39 < mfoord> noodles: for sst itself we want something generally useful rather than just stuff for our specif
ic tests
13:40 < mfoord> noodles: I don't know how easy that is to do with argparse though which expects to recognise all
the options...
13:40 < noodles> mfoord: what about just using env vars (too hacky?)
13:40 < mfoord> noodles: that would work, but not very easy to use
13:42 < noodles> GMAIL_PASSWORD=foo ./sst-run ..., vs, ./sst-run -x:GMAIL_
ecision for cgoldberg.
}}}
Changed in selenium-simple-test: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Perhaps we could include "profiles". Each profile would be described entirely in its own file. The user would only need to specify which profile to test against, and a default could be used.