Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » 'testexec hang-up, after AUT ends' & 'end autrun correctly'
'testexec hang-up, after AUT ends' & 'end autrun correctly' [message #892223] Wed, 27 June 2012 12:43 Go to next message
Nils L is currently offline Nils LFriend
Messages: 2
Registered: June 2012
Junior Member
Hello everybody,

I'm using Jubula with autrun,testexec, MYSQL on Windows 2008, to test a Swing Appplication. My problem is, that after the testjob ends the AUT, the testexec hang-up with 'AUT: Connection Closed' and the autrun.exe is still started

My Configuration:
SET JUBULAPATH=C:\Program Files (x86)\jubula_6.0.00072
SET SLEEP=E:\lvsBusinessIntegrationTest\Trunk\testtools\sleep.exe

start /MIN "Autrun LVS CLient" "%JUBULAPATH%\server\autrun.exe" -w C:\LVS -a localhost -p 60000 -swing -k de_DE -i LVSClient -e 'LVS Client.exe'
%SLEEP% 20
"%JUBULAPATH%\jubula\testexec.exe" -project LVS -version 4.1 -server makaria -port 60000 -autconfig LVSClient -resultdir C:\Users\SQL2000\workspace\testresults -language de_DE -dbscheme Jubula -dbuser jubula -dbpw jubula -datadir C:\Users\SQL2000\workspace\testdata -data C:\Users\SQL2000\workspace -testjob tjSimpleLoginLogout


The autrun starts the AUT and the Testjob logging into the AUT and ends the application.

The cmd output looks like this (after 10min a timeout occured):
C:\temp>SET JUBULAPATH=C:\Program Files (x86)\jubula_6.0.00072

C:\temp>SET SLEEP=E:\lvsBusinessIntegrationTest\Trunk\testtools\sleep.exe

C:\temp>start /MIN "Autrun LVS CLient" "C:\Program Files (x86)\jubula_6.0.00072\server\autrun.exe" -w C:\LVS
 -a localhost -p 60000 -swing -k de_DE -i LVSClient -e 'LVS Client.exe'

C:\temp>E:\lvsBusinessIntegrationTest\Trunk\testtools\sleep.exe 20

C:\temp>"C:\Program Files (x86)\jubula_6.0.00072\jubula\testexec.exe" -project LVS -version 4.1 -server localhost -port 60
000 -autconfig LVSClient -resultdir C:\Users\SQL2000\workspace\testresults -language de_DE -dbscheme Jubula -dbuser jubu
la -dbpw jubula -datadir C:\Users\SQL2000\workspace\testdata -data C:\Users\SQL2000\workspace -testjob tjSimpleLoginLogout

Wed Jun 27 14:22:55 CEST 2012   AUT Agent:      Connecting to "localhost:60000" ...
Wed Jun 27 14:22:56 CEST 2012   AUT Agent:      connection established.
Wed Jun 27 14:22:56 CEST 2012   Database:       Connecting as "jubula" to "jdbc:mysql://rabbit:3306/jubula"...
Wed Jun 27 14:22:59 CEST 2012   Database:       Connection established.
Wed Jun 27 14:23:00 CEST 2012   Database:       Loading project "LVS" in version "4.1"...
Wed Jun 27 14:23:08 CEST 2012   Database:       Project loading completed.
Wed Jun 27 14:23:08 CEST 2012   Project:        Checking completeness
Wed Jun 27 14:23:08 CEST 2012           Start Test Job: tjSimpleLoginLogout
Wed Jun 27 14:23:08 CEST 2012   Executing Test Suite "tsLVSClientLogin"...
Wed Jun 27 14:23:08 CEST 2012   Preparing execution of Test Suite "tsLVSClientLogin"...
Wed Jun 27 14:23:08 CEST 2012   AUT:            Connecting to "LVSClient"...
Wed Jun 27 14:23:13 CEST 2012   AUT:            Connection established.
Wed Jun 27 14:23:14 CEST 2012   Resolving predefined Variables
Wed Jun 27 14:23:14 CEST 2012   Resolving Test Steps to execute...
Wed Jun 27 14:23:14 CEST 2012   Test Suite "tsLVSClientLogin" execution...
Wed Jun 27 14:23:14 CEST 2012   Test Case: LVS_Login
Wed Jun 27 14:23:14 CEST 2012   Test Case: Login_URL
Wed Jun 27 14:23:14 CEST 2012           Step: replace text
Wed Jun 27 14:23:15 CEST 2012   Test Case: Login_Name
Wed Jun 27 14:23:15 CEST 2012           Step: replace text
Wed Jun 27 14:23:16 CEST 2012   Test Case: Login_Passwort
Wed Jun 27 14:23:16 CEST 2012           Step: replace text
Wed Jun 27 14:23:16 CEST 2012   Test Case: Login_OK
Wed Jun 27 14:23:16 CEST 2012   Test Case: ub_grc_clickLeft
Wed Jun 27 14:23:16 CEST 2012   Test Case: ub_grc_click
Wed Jun 27 14:23:16 CEST 2012           Step: click
Wed Jun 27 14:23:19 CEST 2012   End of Test Suite
Wed Jun 27 14:23:19 CEST 2012   Writing Report into Filesystem
Wed Jun 27 14:23:19 CEST 2012   Writing Report to Database
Wed Jun 27 14:23:20 CEST 2012   AUT:            Disconnected.
Wed Jun 27 14:23:20 CEST 2012   Executing Test Suite "tsLVSClientLogout"...
Wed Jun 27 14:23:20 CEST 2012   Preparing execution of Test Suite "tsLVSClientLogout"...
Wed Jun 27 14:23:20 CEST 2012   AUT:            Connecting to "LVSClient"...
Wed Jun 27 14:23:22 CEST 2012   AUT:            Connection established.
Wed Jun 27 14:23:23 CEST 2012   Resolving predefined Variables
Wed Jun 27 14:23:23 CEST 2012   Resolving Test Steps to execute...
Wed Jun 27 14:23:23 CEST 2012   Test Suite "tsLVSClientLogout" execution...
Wed Jun 27 14:23:23 CEST 2012   Test Case: LVS_Logout
Wed Jun 27 14:23:23 CEST 2012   Test Case: LVS_Button_F12_Klicken
Wed Jun 27 14:23:23 CEST 2012   Test Case: Main_Klicken_F12
Wed Jun 27 14:23:23 CEST 2012   Test Case: ub_grc_clickLeft
Wed Jun 27 14:23:23 CEST 2012   Test Case: ub_grc_click
Wed Jun 27 14:23:23 CEST 2012           Step: click
Wed Jun 27 14:23:25 CEST 2012   Test Case: Logout_Button_Ja_klicken
Wed Jun 27 14:23:25 CEST 2012   Test Case: ub_grc_clickLeft
Wed Jun 27 14:23:25 CEST 2012   Test Case: ub_grc_click
Wed Jun 27 14:23:25 CEST 2012           Step: click
Wed Jun 27 14:23:26 CEST 2012   AUT:            Disconnected.
!!Error occurred !!
        5006: Timeout occurred.
Wed Jun 27 14:33:25 CEST 2012   Writing Report into Filesystem
Wed Jun 27 14:33:26 CEST 2012   Writing Report to Database
Wed Jun 27 14:33:26 CEST 2012   AUT Agent:      connection closed.
Wed Jun 27 14:33:26 CEST 2012   Exit:           Code 1


My questions:
Q1) How do I end the testexec (the AUT) correctly, so that the testexec ends 'just in time'?
Q2) How do I end the autrun? Is there a better way, than simple kill the autrun.exe Process via Windows commands?
Q3) Is there a better way to verify, if autrun has started the AUT completly? (At the moment I'm using a stupid 'sleep 20sec' command in the cmd file Neutral)

Many thanks for help
Nils

[Updated on: Wed, 27 June 2012 12:54]

Report message to a moderator

Re: 'testexec hang-up, after AUT ends' & 'end autrun correctly' [message #892421 is a reply to message #892223] Thu, 28 June 2012 07:58 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

The first question to check would be whether you need to use a Test Job, or whether a Test Suite would do. If you are only dealing with one AUT, then a Test Suite is probably easier at the moment - test exec will automatically start the AUT from the config and close it at the end.

There is a bug that was fixed for Juno where autrun could not be ended. Now autrun is ended when the AUT stops. The AUT is also stopped when the Agent it is running on is stopped.

I think static waits are the only option when using AUT run at the moment - which is why if you only have one AUT you might want to consider using Test Suites for now.

HTH,
Alex
Re: 'testexec hang-up, after AUT ends' & 'end autrun correctly' [message #988408 is a reply to message #892421] Thu, 29 November 2012 19:22 Go to previous message
Sascha Mising name is currently offline Sascha Mising nameFriend
Messages: 22
Registered: December 2011
Junior Member
Is there a enhancement request on this issure ?
We are also dealing with the same problems as Nils L..

I illustrated it a bit ... to clarify:
http://www.imgbox.de/show/img/J0iEdW20KE.png

Tell me if I am wrong with my assumptioins
Previous Topic:best way to enter data into data sets? (Problems with data sets))
Next Topic:Jubula test suite for the Eclipse UI
Goto Forum:
  


Current Time: Thu Dec 25 09:23:51 GMT 2014

Powered by FUDForum. Page generated in 0.01595 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software