=== Test service with virtual robot A service can be tested in the virtual robot settings. * prepare an app with the service to test - you may start with the examples below or use the ''templater'' tool [https://github.com/pepperhacking/robot-jumpstarter#template-python-service robot-jumpstarter] (use a ''new name'' for your service): {{{ cd /nlp/projekty/pepper/web/robot-jumpstarter python jumpstart.py python-service tweety-service TweetyService cp -a output/tweety-service ~/pepper/ }}} Here `tweety-service` is the directory name of the application (and the app name), `TweetyService` is the API name of your service as it will be called from Python. * start Choregraphe and [../Introduction#virtualrobot run the virtual robot] * find out the ''port number'' of your virtual robot: click [[Image(pepper_connect.png, valign=top)]] [[br]] and remember the `IP` and `port` from the table:[[br]] [[Image(pepper_virtual_port.png)]][[br]] Here the virtual robot's address is `localhost:34121` * run your service in the virtual robot (Choregraphe must still be running, of course): {{{ cd ~/pepper/tweety-service/app python scripts/tweetyservice.py --qi-url localhost:34121 }}} The output should look like: {{{ [I] 1584373059.579170 4749 qimessaging.session: Session listener created on tcp://0.0.0.0:0 [I] 1584373059.579385 4749 qimessaging.transportserver: TransportServer will listen on: tcp://192.168.1.2:36873 [I] 1584373059.579394 4749 qimessaging.transportserver: TransportServer will listen on: tcp://127.0.0.1:36873 }}}