Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Running tests with testexec html toolkit(Is it possible?)
Running tests with testexec html toolkit [message #1385474] Fri, 06 June 2014 17:10 Go to next message
Marco Coradini is currently offline Marco CoradiniFriend
Messages: 3
Registered: June 2014
Junior Member
Hello,

I'm using Jubula for a while now and decided to run some tests with a HTML aut. All is working as expected, but now I want to run the automated tests outside Jubula with the testexec application.

The problem is, I don't know if it will work like the swing application because on autrun help menu it only shows RPC|SWING|SWT toolkits, and autrun help menu does not show any info about HTML toolkit... Is there a way to run these tests on a HTML application?

Thanks and regards,
MC
Re: Running tests with testexec html toolkit [message #1385626 is a reply to message #1385474] Tue, 10 June 2014 06:57 Go to previous messageGo to next message
Oliver Goetz is currently offline Oliver GoetzFriend
Messages: 219
Registered: May 2011
Senior Member
Hi,

autrun won´t work but you can start your Html-AUT by using the -autconfig Parameter for the testexec. For further Details check pages 185 - 187 in the user Manual.
Re: Running tests with testexec html toolkit [message #1385683 is a reply to message #1385474] Tue, 10 June 2014 13:19 Go to previous messageGo to next message
Marco Coradini is currently offline Marco CoradiniFriend
Messages: 3
Registered: June 2014
Junior Member
Hi Oliver,

Thanks for the tip, but still did not work. I tried with IE and Firefox different aut configurations, but both did not start the aut... I guess it really needs the running AUT to start.

Below is the command I'm running and its output:

C:\>testexec.exe -project "WebPortal" -version "1.0" -server "localhost" -port "
60000" -autconfig "WebPortal" -testjob "RUN" -language "en_US" -data "C:\Users\
marco.coradini\workspaceJubula8" -datadir "localhost" -resultdir "C:\Users\marco
.coradini\jubulaTestExecutions" -dbscheme "xxx" -dbuser "jubula" -dbpw
 "xxx"
Tue Jun 10 09:58:29 BRT 2014    AUT Agent:      Connecting to "localhost:60000"
...
Tue Jun 10 09:58:30 BRT 2014    AUT Agent:      connection established.
Tue Jun 10 09:58:31 BRT 2014    Database:       Connecting as "jubula" to "jdbc:
oracle:thin:@xxx.xx.xx.xx:1521:xe"...
Tue Jun 10 09:58:34 BRT 2014    Database:       Connection established.
Tue Jun 10 09:58:34 BRT 2014    Database:       Loading project "WebPortal" in v
ersion "1.0"...
Tue Jun 10 09:58:38 BRT 2014    Database:       Project loading completed.
Tue Jun 10 09:58:38 BRT 2014    Project:        Checking completeness
Tue Jun 10 09:58:38 BRT 2014            Start Test Job: RUN
Tue Jun 10 09:58:38 BRT 2014    Executing Test Suite "Marco_1957"...
Tue Jun 10 09:58:38 BRT 2014    Preparing execution of Test Suite "Marco_1957"..
.
Tue Jun 10 09:58:38 BRT 2014    AUT:            Connecting to "WebPortal"...
!!Error occurred !!
        Could not connect to AUT: WebPortal
Tue Jun 10 09:58:49 BRT 2014    AUT Agent:      connection closed.
Tue Jun 10 09:58:49 BRT 2014    Exit:           Code 1

C:\>
Re: Running tests with testexec html toolkit [message #1385708 is a reply to message #1385683] Tue, 10 June 2014 15:27 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Thanks for the example - for test jobs it is indeed necessary to start each AUT manually (via config or via autrun, which is not available for HTML).
Are you sure that you need a Test Job? If you are working with a Test Suite, then the AUT would be started automatically by testexec.
if you don't need to switch between separate AUTs, then you can use a Test Suite instead of a Test Job.

Hope that helps,
Alex
Re: Running tests with testexec html toolkit [message #1385728 is a reply to message #1385474] Tue, 10 June 2014 18:01 Go to previous messageGo to next message
Marco Coradini is currently offline Marco CoradiniFriend
Messages: 3
Registered: June 2014
Junior Member
Hi Alexandra,

Looks like there are still lots of things I need to learn about Jubula. Works very well with the -testsuite parameter. We were working with testjobs on our swing application, so I supposed it should also work on the HTML application... But that should do the trick for now!

Thank you for the help!
Re: Running tests with testexec html toolkit [message #1385768 is a reply to message #1385728] Wed, 11 June 2014 06:53 Go to previous message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Glad that helped! Bear in mind, we can offer training and consulting should you decide to learn some more Wink
http://testing.bredex.de/training-and-consulting.html

Alex
Previous Topic:Creating a plugin to extract a substring from a long string
Next Topic:start new AUT inside a test case
Goto Forum:
  


Current Time: Thu Apr 25 10:47:37 GMT 2024

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

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

Back to the top