[1.0.1] not reporting failure when originating from child script

Bug #1213977 reported by Shawn Robertson on 2013-08-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
High
RaiMan

Bug Description

starting in version 1.0, the log file that shows errors is not as detailed as version 903.

Example....

I have a main script that is calling another script...

there is a failure in that other script but Sikuli 1.0 and 1.0.1 only states there is an error in line 329 which is just the line where i'm calling the other script.

this main script has no problems in 903 so i want to figure out why it failed and I cant since there is no detail on where the child script is failing only that there is a failure in that child script.

RaiMan (raimund-hocke) wrote :

It should usually do that.

example:

main.sikuli
-- calls
sub1.sikuli
-- which in turn calls
sub2.sikuli

sub2.sikuli produces an error and you get this feedback:
stop line in running script *** [error] script [ mainTest ] stopped with error in line 5
error message *** [error] FindFailed ( can not find 1376931487082.png on the screen. )
the trace back block +++ [error] --- Traceback --- error source first
line: module ( function ) statement
here the error happened *** 4: sub2 ( sub2_1 ) find("1376931487082.png")
here the sub2 was called *** 7: sub ( sub_1 ) sub2_1("hello two")
[error] --- Traceback --- end --------------

the text before the *** are my comments.

Could you give me an example, whre the information is not sufficient?

Thanks Raiman for the fast reply.

When i run my main script in version 1.0.1 it fails it shows this in the messaeg tab below in the IDE:

[error] script [ SmokeTest ] stopped with error in line 329

[error] FindFailed ( can not find P(SbExtendedFu.png) S: 0.88 on the screen. )

this is what line 329 says in my main script:

SlipsExpandedFunctionalityComplete.ts_expanded_functions()

in version r930 when i run that same script it passes BUT if it did fail it would say:

[error] script [ SmokeTest ] stopped with error in line 329

[error] FindFailed ( can not find P(SbExtendedFu.png) S: 0.88 on the screen. ) in SlipsExpandedFunctionalityComplete.ts_expanded_functions() line XXX

let me know if you need anything else or if im not relaying information correctly.

RaiMan (raimund-hocke) wrote :

well, understood.

... but following these 2 lines, there should be a block like

[error] --- Traceback --- error source first
line: module ( function ) statement
XXX: ---module name--- (SlipsExpandedFunctionalityComplete.ts_expanded_functions) --- failing statement ---
[error] --- Traceback --- end --------------

Download full text (12.8 KiB)

unfortunately there is not.

after those 2 lines nothing else appears and the message ends.

here is the entire message contents posted from the IDE message window

[log] App.open \\gaqtsbuild01\TSStorage\Builds\2014\utilities\TSCodes.exe(5516)

[log] TYPE "#TAB."

[log] TYPE "#TAB."
[log] TYPE " "

[log] ( Alt ) TYPE " "

[log] TYPE "n"

[log] App.open \\gaqtsbuild01\TSStorage\Builds\2014\Build 22.0.1.248\setup.exe(6548)

[log] Alt+Alt Graph+Button1+CLICK on L(482,483)@S(0)[0,0 1280x1024]

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] TYPE "a"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "r"

[log] ( Alt ) TYPE "p"

[log] TYPE "#ENTER."

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "s"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "i"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "d"

[log] ( Alt ) TYPE "r"

[log] ( Alt ) TYPE "u"

[log] ( Alt ) TYPE "f"

[log] App.close \\machine\TSStorage\Builds\2014\utilities\TSCodes.exe(5516)
[log] App.close \\machine\TSStorage\Builds\2014\Build 22.0.1.248\setup.exe(6548)
[log] ( Windows ) TYPE "r"

[log] TYPE "#ENTER."

[log] TYPE "reg DELETE HKEY_CURRENT_USER\Software\Sage\Timeslips"

[log] TYPE "#ENTER."

[log] TYPE "y"

[log] TYPE "#ENTER."

[log] TYPE "exit"

[log] TYPE "#ENTER."

[log] App.open C:\tssmoketest\2014\timeslip.exe(2560)

[log] TYPE "n"
[log] TYPE "n"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] TYPE " "

[log] ( Alt ) TYPE "n"
[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "f"

[log] TYPE "#ENTER."

[log] ( Alt ) TYPE "n"

[log] ( Alt ) TYPE "n"

[log] TYPE "o"
[log] ( Alt ) TYPE "f"

[log] TYPE "#ENTER."

[log] TYPE "#ENTER."

[log] TYPE "#ENTER."

[log] ( Alt ) TYPE "p"

[log] TYPE "p"

[log] TYPE "#F6."
[log] TYPE "#F6."
[log] TYPE "#F6."

[log] TYPE "a"

[log] TYPE "y"

[log] TYPE "#TAB."
[log] TYPE "#TAB."
[log] TYPE "#TAB."

[log] TYPE "#TAB."
[log] TYPE "#TAB."

[log] TYPE "#TAB."
[log] TYPE "#ENTER."

[log] App.close C:\tssmoketest\2014\timeslip.exe(2560)

[log] App.open C:\tssmoketest\2014\MiniTS.exe(6892)

[log] TYPE "#ENTER."

[log] ( Alt ) TYPE " "

[log] TYPE "x"
[log] ( Ctrl ) TYPE "w"

[log] ( Alt ) TYPE "h"

[log] TYPE "a"

[log] TYPE "d"
[log] App.close C:\tssmoketest\2014\MiniTS.exe(6892)

[log] App.open C:\tssmoketest\2014\navedit.exe(8212)

[log] ( Alt ) TYPE " "

[log] TYPE "x"

[log] ( Ctrl ) TYPE "w"

[log] ( Alt ) TYPE "h"
[log] TYPE "a"

[log] TYPE "d"

[log] App.close C:\tssmoketest\2014\navedit.exe(8212)

[log] App.open C:\tssmoketest\2014\procedit.exe(8172)

[log] TYPE "c"

[log] ( Alt ) TYPE "p"
[log] TYPE "a"

[log] TYPE "d"

[log] App.close C:\tssmoketest\2014\procedit.exe(8172)

[log] App.open C:\tssmoketest\2014\statadmn.exe(7900)

[log] ( Alt ) TYPE "h"

[log] TYPE "a"

[log] TYPE "d"

[log] App.close C:\tssmoketest\2014\statadmn.exe(7900)

[log] App.open C:\tssmoketest\2014\timeslip.exe(7328)

[log] TYPE "#ENTER."

[log] TYPE "#ENTER."

[log] ( Alt ) TYPE " "
[log] TYPE "x"

[log] ( Ctrl ) TYPE "w"
[log] ( Alt ) TYPE "h"

[log] TYPE "a"

[log] TYPE "d"

[...

RaiMan (raimund-hocke) wrote :

Thanks I will check and revise.

summary: - Sikuli 1.0.1 not reporting failure when originating from child script
+ [1.0.1] not reporting failure when originating from child script
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers