CruiseControl, phing and Selenium
sunpascal <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm having trouble with Cruise Control and phpUnderControl.
Here's what I'm trying to do: my CruiseControl config.xml is set up to call
a phing build script which invokes phpunit and runs a php script. The build
process itself performs a Selenium RC FrontEnd test (http://seleniumhq.org/
).
The config files seem to be valid and the php script runs just fine when
calling it using php, phing or phpunit from the command line.
The problem occurs when I start the build from the phpUnderControl web
interface. At first the build tasks runs as it should but half way throught
the front end test the script just stops and project status turns to "idle".
After the script stops the Selenium server doesn't receive any commands and
doesn't display any errors either.
I'm using CruiseControl 2.8.2 and phing 2.3.3 on Suse linux, Selenium
RC 1.0.1 running on WinXp.
Here's the last output from the CruiseControl log:
[cc]Jul-27 17:06:22 jectController- selenium
Controller: forcing build
[cc]Jul-27 17:06:22 Project - Project selenium: in build queue
[cc]Jul-27 17:06:22 jectController- selenium Controller: build progress
event: in build queue
[cc]Jul-27 17:06:22 BuildQueue - now adding to the thread queue: selenium
[cc]Jul-27 17:06:22 Project - Project selenium: bootstrapping
[cc]Jul-27 17:06:22 jectController- selenium Controller: build progress
event: bootstrapping
[cc]Jul-27 17:06:22 Project - Project selenium: checking for
modifications
[cc]Jul-27 17:06:22 jectController- selenium Controller: build progress
event: checking for modifications
[cc]Jul-27 17:06:22 Project - Project selenium: no modification set
but build was forced
[cc]Jul-27 17:06:22 Project - Project selenium: now building
[cc]Jul-27 17:06:22 jectController- selenium Controller: build progress
event: now building
/usr/bin/phing -listener phing.listener.XmlLogger
-DXmlLogger.file=phing_log.xml -Dlastbuildsuccessful=false -Dlabe
l=build.71 -Dprojectname=selenium
-Dcclastgoodbuildtimestamp=20090727110659 -Dcctimestamp=20090727170622
-Dbuildfor ced=true
"-Dcvstimestamp=2009-07-27 15:06:22 GMT"
-Dcclastbuildtimestamp=20090727163852 -buildfile /export/home/ci/
bin/cruisecontrol-bin-2.8.2/projects/selenium/build.xml
[cc]Jul-27 17:06:22 ScriptRunner - Buildfile:
/export/home/ci/bin/cruisecontrol-bin-2.8.2/projects/selenium/build.
xml
[cc]Jul-27 17:06:23 ScriptRunner - selenium > clean:
[cc]Jul-27 17:06:23 ScriptRunner - [delete] Deleting directory
/export/home/ci/bin/cruisecontrol-bin-2.8.2/proj
ects/selenium/build
[cc]Jul-27 17:06:23 ScriptRunner - selenium > prepare:
[cc]Jul-27 17:06:23 ScriptRunner - [mkdir] Created dir:
/export/home/ci/bin/cruisecontrol-bin-2.8.2/projects/s
elenium/build/logs
[cc]Jul-27 17:06:23 ScriptRunner - selenium > phpunit:
[cc]Jul-27 17:06:23 ScriptRunner - Loading Test ...
[cc]Jul-27 17:06:35 ScriptRunner - Test started: Mon, 27 Jul 2009 17:06:23
+0200
[cc]Jul-27 17:07:31 Project - Project selenium: idle
[cc]Jul-27 17:07:31 jectController- selenium Controller: build progress
event: idle
[cc]Jul-27 17:07:31 Project - exception attempting build in project
selenium
net.sourceforge.cruisecontrol.CruiseControlException: phing logfile
/export/home/ci/bin/cruisecontrol-bin-2.8.2/pro
jects/selenium/phing_log.xml is empty. Your build probably
failed. Check your CruiseControl logs.
at
net.sourceforge.cruisecontrol.builders.PhingBuilder.getPhingLogAsElement(PhingBuilder.java:295)
at
net.sourceforge.cruisecontrol.builders.PhingBuilder.build(PhingBuilder.java:124)
at net.sourceforge.cruisecontrol.Schedule.build(Schedule.java:169)
at net.sourceforge.cruisecontrol.Project.build(Project.java:226)
at net.sourceforge.cruisecontrol.Project.execute(Project.java:147)
at
net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfig.java:402)
at net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69)
at java.lang.Thread.run(Thread.java:810)
[cc]Jul-27 17:07:31 Project - Project selenium: next build in 2
minutes
[cc]Jul-27 17:07:31 Project - Project selenium: waiting for next time
to build
[cc]Jul-27 17:07:31 jectController- selenium Controller: build progress
event: waiting for next time to build
the problem is the line "[cc]Jul-27 17:07:31 Project - Project
selenium: idle" - this is where the script stops instead of executing the
rest of my php file.....
As I said the php file itself works fine when I call it from the command
line directly.
Does anyone know what is causing this odd behavior?
Thanks for your help!
Pascal
------------------------------------------------------------------------------
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user