IDEMPIERE-206 Integrate fitnesse with iDempiere / Make root page use env variables
This commit is contained in:
parent
beeac4449a
commit
a6ed2846a0
|
@ -1,10 +1,10 @@
|
||||||
|
|||12:04:00 jue, dic 20, 2012|
|
||||||
|FitLibraryWeb||01:41:13 Thu, Dec 13, 2012|
|
|FitLibraryWeb||01:41:13 Thu, Dec 13, 2012|
|
||||||
|FitLibrary||01:40:51 Thu, Dec 13, 2012|
|
|FitLibrary||01:40:51 Thu, Dec 13, 2012|
|
||||||
|FrontPage||01:40:10 Thu, Dec 13, 2012|
|
|FrontPage||01:40:10 Thu, Dec 13, 2012|
|
||||||
|FrontPage.ZkMultiClientLogin||01:36:38 Thu, Dec 13, 2012|
|
|FrontPage.ZkMultiClientLogin||01:36:38 Thu, Dec 13, 2012|
|
||||||
|FrontPage.ZkSingleClientLogin||01:32:27 Thu, Dec 13, 2012|
|
|FrontPage.ZkSingleClientLogin||01:32:27 Thu, Dec 13, 2012|
|
||||||
|FrontPage.ZkLogin||24:39:17 Thu, Dec 13, 2012|
|
|FrontPage.ZkLogin||24:39:17 Thu, Dec 13, 2012|
|
||||||
|||14:45:31 Wed, Dec 12, 2012|
|
|
||||||
|CommonTests.CreateMaterialReceipt||01:36:56 mar, abr 03, 2012|
|
|CommonTests.CreateMaterialReceipt||01:36:56 mar, abr 03, 2012|
|
||||||
|CommonTests.CreateProductPrice||01:29:57 mar, abr 03, 2012|
|
|CommonTests.CreateProductPrice||01:29:57 mar, abr 03, 2012|
|
||||||
|AvgCostSuite.BasicTest||01:18:34 mar, abr 03, 2012|
|
|AvgCostSuite.BasicTest||01:18:34 mar, abr 03, 2012|
|
||||||
|
|
|
@ -2,8 +2,6 @@ Define the global path:
|
||||||
|
|
||||||
Where to find the fixtures classes: ( i.e. /home/hengsin/workspace/idempiere-trekglobal/fitnesse/bin )
|
Where to find the fixtures classes: ( i.e. /home/hengsin/workspace/idempiere-trekglobal/fitnesse/bin )
|
||||||
|
|
||||||
!define fitnesse_home {/home/hengsin/workspace/idempiere-trekglobal/fitnesse}
|
|
||||||
|
|
||||||
!path ${fitnesse_home}/fitnesse.jar:${fitnesse_home}/lib/*.jar:${fitnesse_home}/bin
|
!path ${fitnesse_home}/fitnesse.jar:${fitnesse_home}/lib/*.jar:${fitnesse_home}/bin
|
||||||
|
|
||||||
Define the command to access iDempiere fitnesse servlet
|
Define the command to access iDempiere fitnesse servlet
|
||||||
|
@ -16,10 +14,10 @@ There are some important variables here:
|
||||||
This variables can be redefined specifically at page level.
|
This variables can be redefined specifically at page level.
|
||||||
|
|
||||||
!define TEST_RUNNER {fitnesse.client.FitServerServletInvoker}
|
!define TEST_RUNNER {fitnesse.client.FitServerServletInvoker}
|
||||||
!define COMMAND_PATTERN {java -Xms32m -Xmx512m -DLOG4J_LEVEL=CONFIG -cp %p %m http://localhost:8080/fitnesse/FitServlet}
|
!define COMMAND_PATTERN {java -Xms32m -Xmx512m -DLOG4J_LEVEL=CONFIG -cp %p %m http://localhost:${ADEMPIERE_WEB_PORT}/fitnesse/FitServlet}
|
||||||
|
|
||||||
To enable remote debugging the tests will stop until you connect remotely via eclipse using RemoteADempiereFitnesse.launch
|
To enable remote debugging the tests will stop until you connect remotely via eclipse using RemoteADempiereFitnesse.launch
|
||||||
|
|
||||||
You must add this to the URL ?responder=test&remote_debug=true
|
You must add this to the URL ?responder=test&remote_debug=true
|
||||||
|
|
||||||
!define REMOTE_DEBUG_COMMAND {java -Xms32m -Xmx512m -DLOG4J_LEVEL=ALL -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044 -cp %p %m http://localhost:8080/fitnesse/FitServlet}
|
!define REMOTE_DEBUG_COMMAND {java -Xms32m -Xmx512m -DLOG4J_LEVEL=ALL -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044 -cp %p %m http://localhost:${ADEMPIERE_WEB_PORT}/fitnesse/FitServlet}
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
<listEntry value="1"/>
|
<listEntry value="1"/>
|
||||||
</listAttribute>
|
</listAttribute>
|
||||||
|
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
|
||||||
|
<mapEntry key="ADEMPIERE_WEB_PORT" value="${ADEMPIERE_WEB_PORT}"/>
|
||||||
|
<mapEntry key="fitnesse_home" value="${workspace_loc}/fitnesse"/>
|
||||||
|
</mapAttribute>
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="fitnesseMain.FitNesseMain"/>
|
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="fitnesseMain.FitNesseMain"/>
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-p 8089 -l log"/>
|
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-p 8089 -l log"/>
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="fitnesse"/>
|
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="fitnesse"/>
|
||||||
|
|
|
@ -38,10 +38,12 @@ do
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
export fitnesse_home=`dirname $0`
|
||||||
|
eval "export `grep ADEMPIERE_WEB_PORT $fitnesse_home/../idempiereEnv.properties`"
|
||||||
|
|
||||||
jvm_args[${#jvm_args[*]}]="-jar"
|
jvm_args[${#jvm_args[*]}]="-jar"
|
||||||
jvm_args[${#jvm_args[*]}]="fitnesse.jar"
|
jvm_args[${#jvm_args[*]}]="fitnesse.jar"
|
||||||
|
|
||||||
echo java ${jvm_args[*]} ${fitnesse_args[*]}
|
echo java ${jvm_args[*]} ${fitnesse_args[*]}
|
||||||
java -Xmx100M ${jvm_args[*]} -p 8089 -l log ${fitnesse_args[*]}
|
java -Xmx100M ${jvm_args[*]} -p 8089 -l log ${fitnesse_args[*]}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue