Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363159

Summary: Using categories in Central Test Data Editor: after exporting, deleting and importing a project test execution fails
Product: [Technology] Jubula Reporter: Oliver Goetz <Oliver.Goetz>
Component: CoreAssignee: Zeb Ford-Reitz <zeb.ford-reitz>
Status: CLOSED FIXED QA Contact: Oliver Goetz <Oliver.Goetz>
Severity: blocker    
Priority: P3 CC: alexandra.schladebeck
Version: 1.1.0   
Target Milestone: Juno M6   
Hardware: PC   
OS: Windows Server 2008   
Whiteboard:

Description Oliver Goetz CLA 2011-11-08 06:36:53 EST
I created a project which uses the Central Test Data. After creating the project everything runs fine, tests are executed successfully. But after exporting the project, deleting it from my DB and importing it again the test execution fails with an UE:

An internal error occurred during: "Executing Test Suite...".
-1

3004: Unexpected error occurred.
  java.lang.ArrayIndexOutOfBoundsException: -1
  	at java.util.Vector.get(Unknown Source)
  	at org.eclipse.persistence.indirection.IndirectList.get(IndirectList.java:401)
  	at org.eclipse.jubula.client.core.model.TDManagerPO.getDataSet(TDManagerPO.java:350)
  	at org.eclipse.jubula.client.core.businessprocess.TestDataBP.getTestData(TestDataBP.java:106)
  	at org.eclipse.jubula.client.core.utils.RefToken.getExecutionString(RefToken.java:335)
  	at org.eclipse.jubula.client.core.utils.ParamValueConverter.getExecutionString(ParamValueConverter.java:190)
  	at org.eclipse.jubula.client.core.businessprocess.TestExecution.configureMessageCap(TestExecution.java:870)
  	at org.eclipse.jubula.client.core.businessprocess.TestExecution.buildMessageCap(TestExecution.java:782)
  	at org.eclipse.jubula.client.core.businessprocess.TestExecution.processCap(TestExecution.java:579)
  	at org.eclipse.jubula.client.core.businessprocess.TestExecution.startTestSuite(TestExecution.java:544)
  	at org.eclipse.jubula.client.core.businessprocess.TestExecution.executeTestSuite(TestExecution.java:335)
  	at org.eclipse.jubula.client.core.ClientTest$1.run(ClientTest.java:519)
  	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The executed test suite is not decorated with a warning. Looking at the test cases used in the test suite shows that those test cases which use central test data sets located in categories now no longer use central test data but are reset to local test case as data source. The one test case using the central test data set which is not located in a category however still uses this one.
Comment 2 Oliver Goetz CLA 2011-11-15 10:28:40 EST
Fix verified manually