Import used to run some script code works only once --- Python defined behavior
Asked by
aravind
The very first time I run utest.sikuli , the tw.sikuli test is getting executed and I am able to see the result ( report from HTML test runner ). but when I run the utest.sikuli for 2nd time. two.sikuli is not running but in result it is considering as a pass without performing the test. If I restart the sikuli IDE it is running fine for the first time, Am I using the import statement in a wrong manner ?
utest.sikuli
class SikuliUI(
def test_1_
import two
two.sikuli ::
from sikuli import *
popup("Check for greyedout option in menu")
click(Pattern(
assert exists(
popup("Match found")
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- aravind
- Solved:
- Last query:
- Last reply:
To post a message you must log in.