[check] The context path should been set when start new application

Bug #1218755 reported by markshao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

The application which I need to start from sikuli may need to start a internal service from it self. The service need to read the relative path folders from it's own directory.

I try to use the script

App.open(xxx.exe)

to start the application , but when I try to get the service , always got 404 error.

Whether the sikuli should provide the parameters to specify the context path when start the new application via the App.open api

Revision history for this message
RaiMan (raimund-hocke) wrote :

Pls. make your request a bit more specific (might be an example helps)

summary: - The context path should been set when start new application
+ [request] The context path should been set when start new application
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Incomplete
assignee: nobody → RaiMan (raimund-hocke)
Revision history for this message
markshao (mark-shao) wrote : Re: [request] The context path should been set when start new application

Append an example

Suppose there is an application name test.exe under the directory A. Whenever the application is started , it start an daemon web service at the same time to provide service for download the html files in the folder HTML under A.

if I directly go the A directory , start the test.exe. The service is ok , I can see the file list in the browser with the host:port

But I use the sikuli code App.open('c:\A\test.exe') , then the service always return 404 not found error.

I guess the problem maybe the context path of the application process. So I start the application from App.open() , the context path of the application process maybe the path where sikuli is located. So the application process could not find HTML folder .

So whether we should set the context path for the application process.

For example the App.open('c:\A\test.exe') should set the context path to be 'C:\A'

Maybe I am wrong , need your advice . Thanks.

Revision history for this message
RaiMan (raimund-hocke) wrote :

Thanks, I will add some option for that.

Changed in sikuli:
status: Incomplete → Fix Committed
importance: Undecided → High
milestone: none → 1.1.0
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.0 → 2.0.0
importance: High → Medium
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 2.0.0 → 2.0.1
summary: - [request] The context path should been set when start new application
+ [check] The context path should been set when start new application
Changed in sikuli:
status: Fix Committed → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.