Régression tests TCK jms/ee/mdb/xa
De : helene.joanin@bull.net
On vient de se rendre compte qu'il y avait une régression possible dans les tests jms mdb xa.
(Je ne m'en suis pas rendue compte tout de suite car c'est une combinaison de deux tests (ou 3).)
Deux tests ne passent pas si un autre test a été préalablement exécutés.
La régression est apparue sur la version de JORAM du lundi 24 sept. au soir.
Ok avec la version de JORAM du vendredi 21 sept. au matin.
Cf les commits de cette période : http://mail-archive.ow2.org/joram-commits/2012-09/mail2.html
Les tests
- jms/ee/mdb/xa/MDBClient.Test8
- jms/ee/mdb/xa/MDBClient.Test9
échouent si le test - jms/ee/mdb/xa/MDBClient.Test10
est executé.
A noter que les tests 8 et 9 sont similaires.
Test10:
- @test_Strategy: Send a test message to a container managed queue.
- The mdb tests if this is the first time this message was
- received by checking the JMSRedelivered flag. Send a msg,
- rollback. send a second message, pass if 2nd msg received.
Test8:
- @test_Strategy: Invoke an bmt mdb by writing to MDB_QUEUE_BMT.
- mdb begins a transaction, sends a msg to MDB_QUEUE.
- then rollsback. Verify the 2nd msg is received.
*
Voici les traces des tests.
Test10:
10-17-2012 08:49:06: TRACE: ####### Value of harness.socket.retry.count is "10"
10-17-2012 08:49:06: TRACE: ####### Value of harness.log.port is "2000"
10-17-2012 08:49:06: TRACE: *** in EETest.run(argv,p)
10-17-2012 08:49:06: TRACE: TESTCLASS=com.sun.ts.tests.jms.ee.mdb.xa.MDBClient
10-17-2012 08:49:06: TRACE: ABOUT TO GET SETUP METHOD!
10-17-2012 08:49:06: TRACE: GOT SETUP METHOD!
10-17-2012 08:49:06: TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.jms.ee.mdb.xa.MDBClient
10-17-2012 08:49:06: TRACE: ** IN getRunMethod: testname=Test10
10-17-2012 08:49:06: TRACE: ** GOT RUN METHOD!
10-17-2012 08:49:06: TRACE: **runmethod=Test10
10-17-2012 08:49:06: TRACE: GOT CLEANUP METHOD!
10-17-2012 08:49:06: TRACE: ABOUT TO INVOKE SETUP METHOD!
10-17-2012 08:49:06: TRACE: in client setup
10-17-2012 08:49:06: TRACE: Client: Do lookups!
10-17-2012 08:49:06: TRACE: get the connection and start erup
10-17-2012 08:49:06: TRACE: Client: connection started, now send initialization msg!
10-17-2012 08:49:06: TRACE: INVOKED SETUP METHOD!
10-17-2012 08:49:06: TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
10-17-2012 08:49:06: TRACE: Hostname 172.16.116.3
10-17-2012 08:49:06: TRACE: testFlag true
10-17-2012 08:49:06: TRACE: logPort 2000
10-17-2012 08:49:06: TRACE: addProps: harness.log.delayseconds
10-17-2012 08:49:06: TRACE: addProps: testName
10-17-2012 08:49:06: TRACE: addProps: add property testName
10-17-2012 08:49:06: TRACE: addProps: harness.log.traceflag
10-17-2012 08:49:06: TRACE: addProps: deployManageruri.2
10-17-2012 08:49:06: TRACE: addProps: deployManageruri.1
10-17-2012 08:49:06: TRACE: addProps: deployManageruname.2
10-17-2012 08:49:06: TRACE: addProps: deployManageruname.1
10-17-2012 08:49:06: TRACE: addProps: porting.ts.login.class.2
10-17-2012 08:49:06: TRACE: addProps: porting.ts.login.class.1
10-17-2012 08:49:06: TRACE: addProps: porting.ts.HttpsURLConnection.class.2
10-17-2012 08:49:06: TRACE: addProps: porting.ts.HttpsURLConnection.class.1
10-17-2012 08:49:06: TRACE: addProps: porting.ts.deploy2.class.2
10-17-2012 08:49:06: TRACE: addProps: wsdlRepository2
10-17-2012 08:49:06: TRACE: addProps: add property wsdlRepository2
10-17-2012 08:49:06: TRACE: addProps: jms_timeout
10-17-2012 08:49:06: TRACE: addProps: add property jms_timeout
10-17-2012 08:49:06: TRACE: addProps: porting.ts.deploy2.class.1
10-17-2012 08:49:06: TRACE: addProps: wsdlRepository1
10-17-2012 08:49:06: TRACE: addProps: add property wsdlRepository1
10-17-2012 08:49:06: TRACE: addProps: line.separator
10-17-2012 08:49:06: TRACE: addProps: finder
10-17-2012 08:49:06: TRACE: addProps: add property finder
10-17-2012 08:49:06: TRACE: addProps: all.props
10-17-2012 08:49:06: TRACE: addProps: harness.temp.directory
10-17-2012 08:49:06: TRACE: addProps: namingServicePort2
10-17-2012 08:49:06: TRACE: addProps: add property namingServicePort2
10-17-2012 08:49:06: TRACE: addProps: namingServicePort1
10-17-2012 08:49:06: TRACE: addProps: add property namingServicePort1
10-17-2012 08:49:06: TRACE: addProps: user
10-17-2012 08:49:06: TRACE: addProps: add property user
10-17-2012 08:49:06: TRACE: addProps: namingServiceHost2
10-17-2012 08:49:06: TRACE: addProps: add property namingServiceHost2
10-17-2012 08:49:06: TRACE: addProps: porting.ts.url.class.2
10-17-2012 08:49:06: TRACE: addProps: namingServiceHost1
10-17-2012 08:49:06: TRACE: addProps: add property namingServiceHost1
10-17-2012 08:49:06: TRACE: addProps: porting.ts.url.class.1
10-17-2012 08:49:06: TRACE: addProps: harness.socket.retry.count
10-17-2012 08:49:06: TRACE: addProps: password
10-17-2012 08:49:06: TRACE: addProps: add property password
10-17-2012 08:49:06: TRACE: addProps: harness.log.port
10-17-2012 08:49:06: TRACE: addProps: deployManagerJarFile.2
10-17-2012 08:49:06: TRACE: addProps: deployManagerJarFile.1
10-17-2012 08:49:06: TRACE: addProps: porting.ts.jms.class.2
10-17-2012 08:49:06: TRACE: addProps: porting.ts.jms.class.1
10-17-2012 08:49:06: TRACE: addProps: porting.ts.deploy.class.2
10-17-2012 08:49:06: TRACE: addProps: porting.ts.deploy.class.1
10-17-2012 08:49:06: TRACE: addProps: test_classname
10-17-2012 08:49:06: TRACE: addProps: add property test_classname
10-17-2012 08:49:06: TRACE: addProps: deployManagerpasswd.2
10-17-2012 08:49:06: TRACE: addProps: deployManagerpasswd.1
10-17-2012 08:49:06: TRACE: addProps: harness.host
Client: response message
10-17-2012 08:49:06: TRACE: @checkOnResponse
10-17-2012 08:49:06: TRACE: @recvMessageInternal
10-17-2012 08:49:06: TRACE: @recvMessageInternal trying to receive the message: 0
10-17-2012 08:49:07: SVR-TRACE: @MsgBeanMsgTestPropsQ()!
10-17-2012 08:49:07: SVR-TRACE: setMessageDrivenContext()!!
10-17-2012 08:49:07: SVR-TRACE: mdb -ejbCreate() !!
10-17-2012 08:49:07: SVR-TRACE: initHarn: Hostname 172.16.116.3
10-17-2012 08:49:07: SVR-TRACE: initHarn:traceflag true
10-17-2012 08:49:07: SVR-TRACE: initHarn:logport 2000
10-17-2012 08:49:07: SVR-TRACE: @onMessage!(org.objectweb.joram.client.jms.TextMessage@51021b85,JMSMessageID=ID:0.0.1033c0m0,JMSDestination=Queue:#0.0.1050,JMSCorrelationID=null,JMSDeliveryMode=2,JMSExpiration=0,JMSPriority=4,JMSRedelivered=false,JMSReplyTo=null,JMSTimestamp=1350456546860,JMSType=null,size=24)
10-17-2012 08:49:07: SVR-TRACE: TestCase:=====================xaTest10
10-17-2012 08:49:07: SVR-TRACE: will run TestCase: xaTest10
10-17-2012 08:49:07: SVR-TRACE: Second time? = false
10-17-2012 08:49:07: SVR-TRACE: Test10 message: first time thru
10-17-2012 08:49:07: SVR-TRACE: Message Number: 10
10-17-2012 08:49:07: SVR-TRACE: *@#)@(@#
— - - sendTestResults
10-17-2012 08:49:07: SVR-TRACE: *@#)@(@
#@($----Sending response message
10-17-2012 08:49:07: SVR-TRACE: *@$#)@(@ ----- status: Fail
10-17-2012 08:49:07: SVR-TRACE: *@$#)@(@# -----test: xaTest10
10-17-2012 08:49:07: SVR-TRACE: @MsgBeanMsgTestPropsQ()!
10-17-2012 08:49:07: SVR-TRACE: setMessageDrivenContext()!!
10-17-2012 08:49:07: SVR-TRACE: mdb -ejbCreate() !!
10-17-2012 08:49:07: SVR-TRACE: initHarn: Hostname 172.16.116.3
10-17-2012 08:49:07: SVR-TRACE: initHarn:traceflag true
10-17-2012 08:49:07: SVR-TRACE: initHarn:logport 2000
10-17-2012 08:49:07: SVR-TRACE: @onMessage!(org.objectweb.joram.client.jms.TextMessage@3868ae6,JMSMessageID=ID:0.0.1033c0m0,JMSDestination=Queue:#0.0.1050,JMSCorrelationID=null,JMSDeliveryMode=2,JMSExpiration=0,JMSPriority=4,JMSRedelivered=true,JMSReplyTo=null,JMSTimestamp=1350456546860,JMSType=null,size=24)
10-17-2012 08:49:07: SVR-TRACE: TestCase:=====================xaTest10
10-17-2012 08:49:07: SVR-TRACE: will run TestCase: xaTest10
10-17-2012 08:49:07: SVR-TRACE: Second time? = true
10-17-2012 08:49:07: SVR-TRACE: Test10 message: again - Pass!
10-17-2012 08:49:07: SVR-TRACE: *@#)@(@#
— - - sendTestResults
10-17-2012 08:49:07: SVR-TRACE: *@#)@(@
#@($----Sending response message
10-17-2012 08:49:07: SVR-TRACE: *@$#)@(@ ----- status: Pass
10-17-2012 08:49:07: SVR-TRACE: *@$#)@(@# -----test: xaTest10
10-17-2012 08:49:07: TRACE: TestCase: xaTest10
10-17-2012 08:49:07: TRACE: Status from msg: Pass
10-17-2012 08:49:07: TRACE: Pass: we got the expected msg back!
10-17-2012 08:49:07: TRACE: Close the session
10-17-2012 08:49:07: Client: Closing QueueConnection
10-17-2012 08:49:07: Client: Closing TopicConnection
STATUS:Passed.
********************************************************************************
Finished Test: PASSED........com.sun.ts.tests.jms.ee.mdb.xa.MDBClient.Test10
********************************************************************************
Test8:
10-17-2012 08:50:12: TRACE: ####### Value of harness.socket.retry.count is "10"
10-17-2012 08:50:12: TRACE: ####### Value of harness.log.port is "2000"
10-17-2012 08:50:12: TRACE: *** in EETest.run(argv,p)
10-17-2012 08:50:12: TRACE: TESTCLASS=com.sun.ts.tests.jms.ee.mdb.xa.MDBClient
10-17-2012 08:50:12: TRACE: ABOUT TO GET SETUP METHOD!
10-17-2012 08:50:12: TRACE: GOT SETUP METHOD!
10-17-2012 08:50:12: TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.jms.ee.mdb.xa.MDBClient
10-17-2012 08:50:12: TRACE: ** IN getRunMethod: testname=Test8
10-17-2012 08:50:12: TRACE: ** GOT RUN METHOD!
10-17-2012 08:50:12: TRACE: **runmethod=Test8
10-17-2012 08:50:12: TRACE: GOT CLEANUP METHOD!
10-17-2012 08:50:12: TRACE: ABOUT TO INVOKE SETUP METHOD!
10-17-2012 08:50:12: TRACE: in client setup
10-17-2012 08:50:12: TRACE: Client: Do lookups!
10-17-2012 08:50:12: TRACE: get the connection and start erup
10-17-2012 08:50:12: TRACE: Client: connection started, now send initialization msg!
10-17-2012 08:50:12: TRACE: INVOKED SETUP METHOD!
10-17-2012 08:50:12: TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
10-17-2012 08:50:12: TRACE: Hostname 172.16.116.3
10-17-2012 08:50:12: TRACE: testFlag true
10-17-2012 08:50:12: TRACE: logPort 2000
10-17-2012 08:50:12: TRACE: addProps: harness.log.delayseconds
10-17-2012 08:50:12: TRACE: addProps: testName
10-17-2012 08:50:12: TRACE: addProps: add property testName
10-17-2012 08:50:12: TRACE: addProps: harness.log.traceflag
10-17-2012 08:50:12: TRACE: addProps: deployManageruri.2
10-17-2012 08:50:12: TRACE: addProps: deployManageruri.1
10-17-2012 08:50:12: TRACE: addProps: deployManageruname.2
10-17-2012 08:50:12: TRACE: addProps: deployManageruname.1
10-17-2012 08:50:12: TRACE: addProps: porting.ts.login.class.2
10-17-2012 08:50:12: TRACE: addProps: porting.ts.login.class.1
10-17-2012 08:50:12: TRACE: addProps: porting.ts.HttpsURLConnection.class.2
10-17-2012 08:50:12: TRACE: addProps: porting.ts.HttpsURLConnection.class.1
10-17-2012 08:50:12: TRACE: addProps: porting.ts.deploy2.class.2
10-17-2012 08:50:12: TRACE: addProps: wsdlRepository2
10-17-2012 08:50:12: TRACE: addProps: add property wsdlRepository2
10-17-2012 08:50:12: TRACE: addProps: jms_timeout
10-17-2012 08:50:12: TRACE: addProps: add property jms_timeout
10-17-2012 08:50:12: TRACE: addProps: porting.ts.deploy2.class.1
10-17-2012 08:50:12: TRACE: addProps: wsdlRepository1
10-17-2012 08:50:12: TRACE: addProps: add property wsdlRepository1
10-17-2012 08:50:12: TRACE: addProps: line.separator
10-17-2012 08:50:12: TRACE: addProps: finder
10-17-2012 08:50:12: TRACE: addProps: add property finder
10-17-2012 08:50:12: TRACE: addProps: all.props
10-17-2012 08:50:12: TRACE: addProps: harness.temp.directory
10-17-2012 08:50:12: TRACE: addProps: namingServicePort2
10-17-2012 08:50:12: TRACE: addProps: add property namingServicePort2
10-17-2012 08:50:12: TRACE: addProps: namingServicePort1
10-17-2012 08:50:12: TRACE: addProps: add property namingServicePort1
10-17-2012 08:50:12: TRACE: addProps: user
10-17-2012 08:50:12: TRACE: addProps: add property user
10-17-2012 08:50:12: TRACE: addProps: namingServiceHost2
10-17-2012 08:50:12: TRACE: addProps: add property namingServiceHost2
10-17-2012 08:50:12: TRACE: addProps: porting.ts.url.class.2
10-17-2012 08:50:12: TRACE: addProps: namingServiceHost1
10-17-2012 08:50:12: TRACE: addProps: add property namingServiceHost1
10-17-2012 08:50:12: TRACE: addProps: porting.ts.url.class.1
10-17-2012 08:50:12: TRACE: addProps: harness.socket.retry.count
10-17-2012 08:50:12: TRACE: addProps: password
10-17-2012 08:50:12: TRACE: addProps: add property password
10-17-2012 08:50:12: TRACE: addProps: harness.log.port
10-17-2012 08:50:12: TRACE: addProps: deployManagerJarFile.2
10-17-2012 08:50:12: TRACE: addProps: deployManagerJarFile.1
10-17-2012 08:50:12: TRACE: addProps: porting.ts.jms.class.2
10-17-2012 08:50:12: TRACE: addProps: porting.ts.jms.class.1
10-17-2012 08:50:12: TRACE: addProps: porting.ts.deploy.class.2
10-17-2012 08:50:12: TRACE: addProps: porting.ts.deploy.class.1
10-17-2012 08:50:12: TRACE: addProps: test_classname
10-17-2012 08:50:12: TRACE: addProps: add property test_classname
10-17-2012 08:50:12: TRACE: addProps: deployManagerpasswd.2
10-17-2012 08:50:12: TRACE: addProps: deployManagerpasswd.1
10-17-2012 08:50:12: TRACE: addProps: harness.host
10-17-2012 08:50:12: TRACE: @checkOnResponse
10-17-2012 08:50:12: TRACE: @recvMessageInternal
10-17-2012 08:50:12: TRACE: @recvMessageInternal trying to receive the message: 0
10-17-2012 08:50:12: SVR-TRACE: remove()!!
10-17-2012 08:50:12: SVR-TRACE: remove()!!
10-17-2012 08:50:12: SVR-TRACE: @MsgBeanMsgTestPropsQ()!
10-17-2012 08:50:12: SVR-TRACE: setMessageDrivenContext()!!
10-17-2012 08:50:12: SVR-TRACE: mdb -ejbCreate() !!
10-17-2012 08:50:12: SVR-TRACE: initHarn: Hostname 172.16.116.3
10-17-2012 08:50:12: SVR-TRACE: initHarn:traceflag true
10-17-2012 08:50:12: SVR-TRACE: initHarn:logport 2000
10-17-2012 08:50:12: SVR-TRACE: @onMessage!(org.objectweb.joram.client.jms.TextMessage@2a1f2b5c,JMSMessageID=ID:0.0.1033c3m0,JMSDestination=Queue:#0.0.1147,JMSCorrelationID=null,JMSDeliveryMode=2,JMSExpiration=0,JMSPriority=4,JMSRedelivered=false,JMSReplyTo=null,JMSTimestamp=1350456612348,JMSType=null,size=24)
10-17-2012 08:50:12: SVR-TRACE: TestCase:=====================xaTest8
10-17-2012 08:50:12: SVR-TRACE: will run TestCase: xaTest8
10-17-2012 08:50:12: SVR-TRACE: *@#)@(@#
— - - sendTestResults
10-17-2012 08:50:12: SVR-TRACE: *@#)@(@
#@($----Sending response message
10-17-2012 08:50:12: SVR-TRACE: *@$#)@(@ ----- status: Fail
10-17-2012 08:50:12: SVR-TRACE: *@$#)@(@# -----test: xaTest8
10-17-2012 08:50:12: TRACE: TestCase: xaTest8
10-17-2012 08:50:12: TRACE: Status from msg: Fail
10-17-2012 08:50:12: TRACE: Fail: Error(s) occurred!
10-17-2012 08:50:12: TRACE: Close the session
10-17-2012 08:50:12: ERROR: Exception at:
10-17-2012 08:50:12: ERROR: java.lang.Exception: Test8 -
at com.sun.ts.tests.jms.ee.mdb.xa.MDBClient.Test8(MDBClient.java:346)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.ts.lib.harness.EETest.run(EETest.java:495)
at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:392)
at com.sun.ts.lib.harness.EETest.run(EETest.java:252)
at com.sun.ts.lib.harness.EETest.run(EETest.java:204)
at com.sun.ts.tests.jms.ee.mdb.xa.MDBClient.main(MDBClient.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.ow2.jonas.client.ClientContainer.invokeClient(ClientContainer.java:769)
at org.ow2.jonas.client.ClientContainer.start(ClientContainer.java:710)
at org.ow2.jonas.client.ClientContainer.main(ClientContainer.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.objectweb.ts.lib.implementation.ClientContainerFilter.invokeClient(ClientContainerFilter.java:345)
at org.objectweb.ts.lib.implementation.ClientContainerFilter.main(ClientContainerFilter.java:293)
10-17-2012 08:50:12: Client: Closing QueueConnection
10-17-2012 08:50:12: SVR-TRACE: *@#)@(@#
— - - sendTestResults
10-17-2012 08:50:12: SVR-TRACE: *@#)@(@
#@($----Sending response message
10-17-2012 08:50:12: SVR-TRACE: *@$#)@(@ ----- status: Pass
10-17-2012 08:50:12: SVR-TRACE: *@$#)@(@# -----test: xaTest8
10-17-2012 08:50:12: Client: Closing TopicConnection
10-17-2012 08:50:12: flushed 1 messages
STATUS:Failed.Test case throws exception: Test Failed!
********************************************************************************
Finished Test: FAILED........com.sun.ts.tests.jms.ee.mdb.xa.MDBClient.Test8
********************************************************************************