Pass parameters to sikulix http server

Asked by imglf

Hi,
    I've lauched a sikuli http server by running runsikulix.cmd -s which can send sikulix request without any delay. However, I wanna pass some paramters to sikulix script . and I've tried a url request like this:
    http://localhost:50001/run/test?a=1&b=2
    and I check sys.argv and found nothing

    I wonder if there is a way to pass paramters to sikulix server.

Fei from China
Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

sorry, no way currently.

... and will not be available in version 1.1.x (from my side)

Revision history for this message
Karl (k-d) said :
#2

You can pass arguments to the server at startup that will be available in tests like this: runsikulix -s -- "arg1" "arg2"
You will need to restart the server each time you change the arguments.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

@Karl
Genious ;-)

Revision history for this message
Karl (k-d) said :
#4

:)

Can you help with this problem?

Provide an answer of your own, or ask imglf for more information if necessary.

To post a message you must log in.