BTW this remind me Jacopo's question (on user ML) about Selenium in OFBiz usage... git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1293808 13f79535-47bb-0310-9956-ffa450edef68
42 lines
2.1 KiB
Batchfile
42 lines
2.1 KiB
Batchfile
rem #####################################################################
|
|
rem Licensed to the Apache Software Foundation (ASF) under one
|
|
rem or more contributor license agreements. See the NOTICE file
|
|
rem distributed with this work for additional information
|
|
rem regarding copyright ownership. The ASF licenses this file
|
|
rem to you under the Apache License, Version 2.0 (the
|
|
rem "License"); you may not use this file except in compliance
|
|
rem with the License. You may obtain a copy of the License at
|
|
rem
|
|
rem http://www.apache.org/licenses/LICENSE-2.0
|
|
rem
|
|
rem Unless required by applicable law or agreed to in writing,
|
|
rem software distributed under the License is distributed on an
|
|
rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
rem KIND, either express or implied. See the License for the
|
|
rem specific language governing permissions and limitations
|
|
rem under the License.
|
|
rem #####################################################################
|
|
|
|
set OFBIZ_HOME=../..
|
|
set CP=./build/lib/ofbiz-testtools.jar
|
|
set CP=%CP%;./lib/selenium-java-client-driver.jar
|
|
set CP=%CP%;%OFBIZ_HOME%/framework/base/build/lib/ofbiz-base.jar
|
|
set CP=%CP%;%OFBIZ_HOME%/framework/base/lib/httpclient-4.0.jar
|
|
set CP=%CP%;%OFBIZ_HOME%/framework/base/lib/jdom-1.1.jar
|
|
set CP=%CP%;%OFBIZ_HOME%/framework/base/lib/scripting/jython-nooro.jar
|
|
set CP=%CP%;%OFBIZ_HOME%/framework/base/lib/junit.jar
|
|
set CP=%CP%;%OFBIZ_HOME%/framework/base/lib/commons/commons-lang-2.3.jar
|
|
set CP=%CP%;%OFBIZ_HOME%/framework/base/lib/log4j-1.2.16.jar
|
|
|
|
rem echo %CP%
|
|
|
|
rem For Example:
|
|
rem convertSeleniumIDE.bat <recorded_script> <converted_script>
|
|
|
|
rem following commands needs MkTemp for Windows (http://gnuwin32.sourceforge.net/packages/mktemp.htm)
|
|
rem and Sed for Windows (http://gnuwin32.sourceforge.net/packages/sed.htm) to work
|
|
tempFile=`mktemp tempFileXXX.html`
|
|
sed '2d' %1 > $tempFile
|
|
rem BEware the following command is provided for convenience and remains untestet
|
|
"%JAVA_HOME%/bin/java.exe" -cp %CP% org.ofbiz.testtools.seleniumxml.SeleniumIDEConverter "%tempFile%" %2
|
|
del "%tempFile%" |