run ttl(teraterm macro) in robot F/W using Jenkins.

191 views
Skip to first unread message

sandis...@gmail.com

unread,
Jun 1, 2018, 8:04:29 AM6/1/18
to robotframework-users
hi.

I used jenkins to execute robot test and in robot script it has the line to execute ttl(teraterm macro) file with 'Run" (OperatingSystem Library).

When i ran the test case in RIDE, 'teraterm macro(ttl)' was executed well.

but, when i bulid the same robot test in jenkins, teraterm macro doesn't work.

what is the problem?

how can i solve this problem?


Pekka Klärck

unread,
Jun 1, 2018, 8:40:54 AM6/1/18
to sandis...@gmail.com, robotframework-users
Something is different in these two environments but it's impossible
to know what. I'd recommend you do switch to using `Run Process`
keyword from the Process library and then checking, `rc`, `stdout` and
`stderr` in the returned result object. For example:

${result} = Run Process my_command.exe
Log many ${result.rc} ${result.stdout} ${result.stderr}

If the command produces lot of console output, you probably should
redirect stdout and stderr into files. See the documentation of the
library for more details about that and configuring the started
process in general.

Cheers,
.peke
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to robotframework-u...@googlegroups.com.
> To post to this group, send email to robotframe...@googlegroups.com.
> Visit this group at https://groups.google.com/group/robotframework-users.
> For more options, visit https://groups.google.com/d/optout.



--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
Reply all
Reply to author
Forward
0 new messages