Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363159 - Using categories in Central Test Data Editor: after exporting, deleting and importing a project test execution fails
Summary: Using categories in Central Test Data Editor: after exporting, deleting and i...
Status: CLOSED FIXED
Alias: None
Product: Jubula
Classification: Technology
Component: Core (show other bugs)
Version: 1.1.0   Edit
Hardware: PC Windows Server 2008
: P3 blocker (vote)
Target Milestone: Juno M6   Edit
Assignee: Zeb Ford-Reitz CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 06:36 EST by Oliver Goetz CLA
Modified: 2012-02-23 03:55 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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