Ticket #1345 (new task)
Documentation for TT Host service internals (how does it work?)
| Reported by: | Jani Laakso | Owned by: | Marko Gronroos |
|---|---|---|---|
| Priority: | undefined | Milestone: | Testing Tools Backlog |
| Component: | Testing Tools | Version: | |
| Keywords: | Cc: | tk-dev@… | |
| Known Issue description: | |||
| Hours estimate: | Deadline (dd.mm.yyyy): | ||
| Known Issue version (since): | Known Issue title: | ||
| Hours done: | Depends to: | ||
| Affects documentation: | no | ||
| Known Issue workaround: | |||
| Affects release notes: | yes | Contract: | |
Description (last modified by Jani Laakso) (diff)
Marko, Jouni, this gives you the impression what can be done with TT Host.. Relates to problem solving, integrating to 3rd party tools etc..
You can skip security checks by adding following line to host-configuration.txt file:
skipsecuritychecks=1
Note: if you do not do this then you have to know password and add timestamp and calculated SHA1 digest parameters to GET parameter aswell.
Now you can query manually query TT host state, execute arbitrary commands or query execution results using simple HTTP GET.
Here are the examples:
http://localhost:8098/execute?status gives you:
datetime=2008-01-28 14:11:43 version=1.0.0-INTERNAL-NONVERSIONED-DEBUG-BUILD osName=Mac OS X osArch=i386 networkName=jani-laaksos-macbook.local exit=OK
NOTE: status gives you list of currently running commands, above there is no commands running (at the moment).
Reset all execution on host http://localhost:8098/execute?reset
starting reset. 2008-01-28 14:12:08;LOG;Request: reset exit=OK
Start (asynchronously) execution of "env" command: http://localhost:8098/execute?command=env
Response link here log.hashCode()=14534017 exit=OK
After above command you can query results later: http://localhost:8098/execute?getLog=14534017
Log found 2008-01-28 14:13:20;LOG;Request: command=env 2008-01-28 14:13:20;DEBUG;executing commands in thread 13743179 2008-01-28 14:13:20;DEBUG; Arg 0 = [env] 2008-01-28 14:13:20;DEBUG;PATH=/usr/bin:/bin:/usr/sbin:/sbin 2008-01-28 14:13:20;DEBUG;TMPDIR=/var/folders/eI/eIQyqpOnELywK4C4X2BqXE+++TI/-Tmp-/ 2008-01-28 14:13:20;DEBUG;SHELL=/bin/bash 2008-01-28 14:13:20;DEBUG;HOME=/Users/jani 2008-01-28 14:13:20;DEBUG;USER=jani 2008-01-28 14:13:20;DEBUG;LOGNAME=jani 2008-01-28 14:13:20;DEBUG;DISPLAY=/tmp/launch-zNhpru/:0 2008-01-28 14:13:20;DEBUG;SSH_AUTH_SOCK=/tmp/launch-G2ntyR/Listeners 2008-01-28 14:13:20;DEBUG;Apple_PubSub_Socket_Render=/tmp/launch-7BE1Kb/Render 2008-01-28 14:13:20;DEBUG;__CF_USER_TEXT_ENCODING=0x1F5:0:0 2008-01-28 14:13:20;DEBUG;SECURITYSESSIONID=694ce0 2008-01-28 14:13:20;DEBUG;COMMAND_MODE=legacy 2008-01-28 14:13:20;DEBUG;APP_ICON_455=../Resources/Eclipse.icns 2008-01-28 14:13:20;DEBUG;JAVA_MAIN_CLASS_994=com.itmill.testingtools.launcher.ITMillTestingToolsHost exit=OK
