Setup x64 Test Environment with Ant

206 views
Skip to first unread message

John O Rourke

unread,
Nov 15, 2013, 5:50:54 AM11/15/13
to windowte...@googlegroups.com
I am trying to take the Ant sample 1.0 scripts and convert them to run in x64 windows Env. Im Have my job in Jenkins running the scripts. The build runs fine. It extracts the eclipse fine and installs my product from a jar. I know this as when I manually start up the "eclipse-test" it builds, it boots up with my product installed. Now the Problem lies when when the build.xml kicks in. The eclipse-test instance does now pop up on screen and gives error complaining about not being able to convert a junit xml report into html as it has no content.
So I looked at the error log it provided in the results folder. Its seems to have a reference to 32x jar dependency in the test framework. I went to this URL http://archive.eclipse.org/eclipse/downloads/drops/R-3.7.2-201202080800/ to get the lastest zip, hoping it had this jar org.eclipse.test.performance.win32_3.1.100.jar and somehting like org.eclipse.test.performance.win64_3.1.100.jar. Because I think this is the issue. There is a SWT Error the log and thise is the only jar i find in the eclipse-test when i go in and look at it, the jar file "org.eclipse.test.performance.win32_3.1.100.jar". So I have provided my log file. can somebody please help me with this. 
com.sample.test.smoke.SmokeSuite.log

John O Rourke

unread,
Nov 20, 2013, 11:18:58 AM11/20/13
to windowte...@googlegroups.com
Any update on this guys?

Fred G

unread,
Nov 20, 2013, 1:07:02 PM11/20/13
to windowte...@googlegroups.com
Hi John,

I'll update the WTP Ant example with a configuration for Win64 soon.

Regards,

Fred

Fred G

unread,
Nov 26, 2013, 8:24:33 PM11/26/13
to windowte...@googlegroups.com
Hi John,

The updated Ant example (with support for Win64) can be found here:
http://code.google.com/p/windowtester/downloads/detail?name=WindowTester_AntExample_v1.1.zip

Please report back, if it works for you.

Regards,

Fred

John O Rourke

unread,
Nov 27, 2013, 6:01:16 AM11/27/13
to windowte...@googlegroups.com
Cheers Fred, 
did those stack trace errors help you that i sent you on for selecting tabbed property sheets in the WT community fixes ?


--
You received this message because you are subscribed to a topic in the Google Groups "windowtester-pro" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/windowtester-pro/Ke6515Un8mU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to windowtester-p...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

John O Rourke

unread,
Nov 27, 2013, 6:28:49 AM11/27/13
to windowte...@googlegroups.com
Getting error when running sample, here is my stack trace.


C:\build examples\Ant_1_1>setupWin64.bat

C:\build examples\Ant_1_1>ant -f setup.xml -Dopsys=win64
Buildfile: C:\build examples\Ant_1_1\setup.xml

setup:

unzipEclipse_win64:
    [unzip] Expanding: C:\build examples\Ant_1_1\eclipse-rcp-indigo-SR2-win32-x86_64.zip into C:\build examples\Ant_1_1\setupEclipse
    [unzip] Failed to change file modification time
    [unzip] Failed to change file modification time

runAntRunner:
     [java]
     [java] BUILD FAILED
     [java] Buildfile: C:\build is not a file
     [java]
     [java] Total time: 0 seconds
     [java] An error has occurred. See the log file
     [java] C:\build\.metadata\.log.

BUILD FAILED
C:\build examples\Ant_1_1\setup.xml:30: The following error occurred while executing this line:
C:\build examples\Ant_1_1\setup.xml:69: Java returned: 13

Total time: 12 seconds

C:\build examples\Ant_1_1>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_45

C:\build examples\Ant_1_1>dir
 Volume in drive C is OS
 Volume Serial Number is 4E43-5C68

 Directory of C:\build examples\Ant_1_1

27/11/2013  11:21    <DIR>          .
27/11/2013  11:21    <DIR>          ..
20/11/2013  15:47             5,194 build.xml
27/02/2013  01:12             2,226 com.windowtester.example.swtcontrols_test.source_1.0.0.201302270112.jar
27/02/2013  01:12             2,673 com.windowtester.example.swtcontrols_test_1.0.0.201302270112.jar
27/11/2013  11:14       189,478,955 eclipse-rcp-indigo-SR2-linux-gtk.tar.gz
27/11/2013  11:13       190,643,481 eclipse-rcp-indigo-SR2-win32-x86_64.zip
27/11/2013  11:13       190,655,641 eclipse-rcp-indigo-SR2-win32.zip
27/11/2013  11:15         1,033,218 eclipse-test-framework-3.7.2.zip
26/02/2013  01:57             7,280 library.xml.patched
27/11/2013  11:15         5,927,167 org.eclipse.sdk.examples-3.7.2.zip
27/11/2013  02:11             3,413 readme.txt
27/11/2013  02:07               129 runLinux32.sh
20/11/2013  15:57               242 runWin32.bat
20/11/2013  15:57               255 runWin64.bat
27/11/2013  02:15             3,683 setup.xml
27/11/2013  11:26    <DIR>          setupEclipse
27/11/2013  02:03                45 setupLinux32.sh
20/11/2013  15:40                30 setupWin32.bat
20/11/2013  15:39                30 setupWin64.bat
27/11/2013  02:13         9,491,850 WindowTesterRepo-6.1.0.201308212221-CommunityFixes.zip.zip
              18 File(s)    587,255,512 bytes
               3 Dir(s)  159,221,166,080 bytes free

C:\build examples\Ant_1_1>

Fred G

unread,
Nov 27, 2013, 7:15:04 AM11/27/13
to windowte...@googlegroups.com
Hi John,


   [java] BUILD FAILED
   [java] Buildfile: C:\build is not a file

This one is pretty obvious. Paths containing blank characters are a reliable source of random errors. Removing the blank character should fix the problem.
 
Sorry, I did not have time to look at the stack traces regarding tabbed property sheets yet.

Regards,

Fred

John O Rourke

unread,
Nov 27, 2013, 8:11:31 AM11/27/13
to windowte...@googlegroups.com
Eek, My Bad! Keep forgetting that, thanks.


--

John O Rourke

unread,
Mar 26, 2014, 10:14:39 AM3/26/14
to windowte...@googlegroups.com

Trying to run the automated tests with jenkins that is run from a tomcat installed as a windows service on Windows 7. If I try to do it this way the test instance when the ant task is being executed to run the test never appears. Also trying to do this on team Server 2012 and having the same issue except when tomcat is not installed as a windows service and I have added a domain controller to the Team server, the test instance stopped appearing at the point of execution. Would there be a domain controller issue here i wonder with regards to the users roles assigned to the web application security settings. (i.e) Jenkins security credentials. I have found on article about mapping a service principle name (SPN) to the domain controller on team server. But it seems tomcat needs to be installed as a windows service. But as a starting point, I would like to know. Is it a problem to run the automated tests from ant when tomcat is installed as a windows service in Windows 7?

On Friday, 15 November 2013 10:50:54 UTC, John O Rourke wrote:

Fred G

unread,
Mar 27, 2014, 12:42:16 PM3/27/14
to windowte...@googlegroups.com
Hi John,

WindowTester needs access to the desktop, which a windows service does not have by default.
I have no experience with your particular combination (Tomcat running as a window service + Jenkins), but I suspect it's the same basic problem.
Please try to start Jenkins as a self-contained server from the command line (e.g. java -jar jenkins.war) and check if your tests are getting executed (this should rule out other sources of errors).

Regards,

Fred

John O Rourke

unread,
Apr 13, 2014, 4:33:18 AM4/13/14
to windowte...@googlegroups.com
FYI : Seemed to be an issue with the domain controller I think on Team Server 2012. You have to get the license configuration right as it was also not allowing Scheduled tasks to run until we played around with it for a bit. Things seem back to normal now using Jenkins deployed in Tomcat. Test's running also.
Reply all
Reply to author
Forward
0 new messages