← Back to team overview

sikuli-driver team mailing list archive

[Question #189436]: Error while starting 2nd script

 

New question #189436 on Sikuli:
https://answers.launchpad.net/sikuli/+question/189436

Hello RaiMan, 

In continuation to my previous query  #189309 (Apologies for starting new question as I closed my previous one)

1) I have updated my master script as per your suggestion and now it looks like this:

import os
import Script1
wait(3)
import Script2

Now the problem is that my first script is running fine but during 2nd script, browser is launched but nothing happens. The error on IDE :

File "C:\Users\apgupta\AppData\Local\Temp\sikuli-tmp8772765509183287214.py", line 4, in
 import LifeCycle
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\SikuliImporter.py", line 45, in load_module
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\SikuliImporter.py", line 27, in _load_module
 File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\SikuliImporter.py", line 27, in _load_module
 File "F:\Sikuli\ALL_Test\LifeCycle.sikuli\LifeCycle.py", line 7, 


If i try to run from silkuli IDE again, second script runs fine, and if i run again from IDE, only 2nd script runs again and again and does not looks for 1st script.

Here I am trying to test some Java applets for a PLM software. (I am quite new to scripting and see sikuli as a great tool as testing automation tool)

2. My second question : can we define a variable in all sub scripts which can be directly called from Master script and no need to update it every time? for example in my case i will be using server url to launch differemt java applets and and that url will be changing as per the server i will be using.

3. Is there a way i can get a report of tests ran through master script with error why the test failed? I checked HTML  Test runner, and was thinking touse it.

4. If a test failes in between, can we correct the script and run the test again from from same step in sikuli? (Something like pause, because Sikuli IDE runs in background and comes up during a failure or if all test are run)

Thanks In Advance.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.