Ticket #1345 (new task)

Opened 12 months ago

Last modified 8 months ago

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

Change History

Changed 12 months ago by Jani Laakso

  • description modified (diff)

Changed 12 months ago by Jani Laakso

  • description modified (diff)

Changed 12 months ago by Jani Laakso

If you wish to ignore security and modal Swing popups completely when starting Testing Host service, then add this file to your ZIP packet:

itmill-testingtools-0.9.11/host-configuration.txt containing:

#
# IT Mill Testing Tools - Testing Host configuration file
#

# anything over 7 characters is fine
password = 123567890
# do not use any security checks
skipsecuritychecks = 1
# I know what I am doing, just start the service
startWithoutAsking = yes

Changed 11 months ago by Joonas Lehtinen

  • milestone set to Testing Tools 1.0

Changed 8 months ago by Joonas Lehtinen

  • milestone set to Testing Tools 1.1.0
Note: See TracTickets for help on using tickets.