This line was causing the error : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> What Erwan done : * corrected the imports in the script * used sed to remove this line, it is now creating a temp file without the line which is given to the converter. I have personally modified the convertSeleniumIDE.bat file but did not test (nor Linux version, I suppose it's ok). I guess this will mostly used on Linux Server and should work anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886233 13f79535-47bb-0310-9956-ffa450edef68
30 lines
925 B
Bash
Executable File
30 lines
925 B
Bash
Executable File
#!/bin/sh
|
|
export OFBIZ_HOME=../..
|
|
export CP=./build/lib/ofbiz-testtools.jar
|
|
export CP=$CP:./lib/selenium-java-client-driver.jar
|
|
export CP=$CP:$OFBIZ_HOME/framework/base/build/lib/ofbiz-base.jar
|
|
export CP=$CP:$OFBIZ_HOME/framework/base/lib/httpclient-4.0.jar
|
|
export CP=$CP:$OFBIZ_HOME/framework/base/lib/jdom-1.1.jar
|
|
export CP=$CP:$OFBIZ_HOME/framework/base/lib/scripting/jython-nooro.jar
|
|
export CP=$CP:$OFBIZ_HOME/framework/base/lib/junit.jar
|
|
export CP=$CP:$OFBIZ_HOME/framework/base/lib/commons/commons-lang-2.3.jar
|
|
export CP=$CP:$OFBIZ_HOME/framework/base/lib/log4j-1.2.15.jar
|
|
|
|
# echo $CP
|
|
|
|
# For Example:
|
|
# convertSeleniumIDE.bat <recorded_script> <converted_script>
|
|
|
|
if [ -f "$JAVA_HOME/bin/java" ]; then
|
|
JAVA="$JAVA_HOME/bin/java"
|
|
else
|
|
JAVA=java
|
|
fi
|
|
|
|
tempFile=`mktemp tempFileXXX.html`
|
|
sed '2d' $1 > $tempFile
|
|
|
|
"$JAVA" -cp $CP org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter "$tempFile" "$2"
|
|
rm $tempFile
|
|
exit 0
|