← Back to team overview

sikuli-driver team mailing list archive

[Bug 897248] Re: A way to add source ~/environment.settings to the default test runner

 

--- using source ~/xyz.env
Do not understand what that should be (running Linux?)

--- will not run in the sikuli test guy runner
Are you talking about Sikuli IDE's unittest view?
Something that runs in normal mode, does not run in the unittest mode and vice versa.
Scripts to run in the unittest view can only contain:
def()'s: setUp, tearDown and one or more testXYZ

Be aware, that the test def()'s are processed in reverse order.

additional def()'s, you want to use in the test functions have to be put
to the end in reverse order too.

--- import in IDE unittest
currently not possible as one might inspect (global imports are not processed).
Every def() needs an import statement.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/897248

Title:
  A way to add source ~/environment.settings to the default test runner

Status in Sikuli:
  New

Bug description:
  Due to the need to share these tests with others I don't want to add
  personal info for things like username and password for tests.

  For this I am using import os and os.environ['name_of_required_field']
  in conjunction with the type command.  This works flawlessly from a
  terminal using source ~/xyz.env for example but will not run in the
  sikuli test gui runner.

  Is there a way to add this functionality some how?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/897248/+subscriptions


References