You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Samisa Abeysinghe <SA...@virtusa.com> on 2005/06/14 09:22:04 UTC

Test framework improved [was:RE: More changes]

I could run the test framework today without trouble.
 
Thanks to the latest improvements, I notice that the test framework now
runs much faster than it used to be. Saves lot of time.
 
Thanks,
Samisa...
 
-----Original Message-----
From: Dushshantha Chandradasa [mailto:dchandradasa@virtusa.com] 
Sent: Monday, June 13, 2005 4:13 PM
To: Apache AXIS C Developers List
Subject: RE: More changes
 
Oopse it's my mistake. Sorry for messing up the mailing list. I used a 3
days old build.win32.properties file :-(. Thanks for correcting me. 
 
Regards,
Dushshantha
________________________________

From: John Hawkins [mailto:HAWKINSJ@uk.ibm.com] 
Sent: Monday, June 13, 2005 3:38 PM
To: Apache AXIS C Developers List
Subject: RE: More changes
 

test.port is set in build.<platform>.properties 
I renamed the old value of testPort to test.port. 
This should be committed? 




"Dushshantha Chandradasa" <dc...@virtusa.com> 
13/06/2005 07:06 
Please respond to
"Apache AXIS C Developers List"
To
"Apache AXIS C Developers List" <ax...@ws.apache.org> 
cc
 
Subject
RE: More changes
 
 
 



Hi John, 
  
Here is the ant output of a failing test. 
  
Buildfile: test.xml 
  
pre-init: 
  
preInitializeTest: 
  
overrideTest: 
  
set-platform-specifics: 
  
checkIfDebug: 
  
initialize: 
  
initializeTest: 
  
compileMonitorUtility: 
  
compile: 
    [javac] Compiling 10 source files to
C:\axiscpp\ws-axis\c\tests\utils\monitor 
    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\ClientReturner.
java 
    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\MockServer.java

    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\MockServerThrea
d.java 
    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\ResponseSender.
java 
    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\StopMockServer.
java 
    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\StopRequestExce
ption.java 
    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\StopTCPMonitor.
java 
    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\TCPMonitor.java

    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\TestClientListe
ner.java 
    [javac]
C:\axiscpp\ws-axis\c\tests\utils\monitor\org\apache\test\TestClientThrea
d.java 
  
package: 
      [jar] Building jar:
C:\axiscpp\ws-axis\c\tests\utils\monitor\monitor.jar 
  
production: 
  
moveMonitorJar: 
     [move] Moving 11 files to C:\obj\test\monitor 
  
initializeLogFile: 
  
setListType: 
  
setIndividual: 
     [echo] setIndividual General_TTest 
  
setFromList: 
  
setAll: 
  
setTestList: 
  
runTests: 
  
loadXMLProperties: 
     [echo] Loading XML file
C:\axiscpp\ws-axis\c\tests\auto_build\testcases\tests\General_TTest.xml 
  
setHandlersPresent: 
  
setPropertiesForTest: 
  
cleanTest: 
   [delete] Deleting directory C:\obj\test\generated\cpp\General_TTest 
  
checkIfRequestFile: 
  
setPropertiesForThisTest: 
  
compileTestClient: 
  
callCompileStaticClient: 
  
setLanguage: 
  
generateStubs: 
    [mkdir] Created dir: C:\obj\test\generated\cpp\General_TTest 
     [java] log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle). 
     [java] log4j:WARN Please initialize the log4j system properly. 
     [java] ignoring anonymous type >mulResponse 
  
     [java] ignoring anonymous type >subResponse 
  
     [java] ignoring anonymous type >addResponse 
  
     [java] ignoring anonymous type >div 
  
     [java] ignoring anonymous type >divResponse 
  
     [java] ignoring anonymous type >mul 
  
     [java] ignoring anonymous type >sub 
  
     [java] ignoring anonymous type >add 
  
  
     [java] Code generation completed. 
  
  
copyClientCode: 
     [copy] Copying 1 file to C:\obj\test\generated\cpp\General_TTest 
  
copyStubClient: 
  
copyDynamicClient: 
  
getClient: 
  
compileStaticClient: 
       [cc] 2 total files to be compiled. 
       [cc] Calculator.cpp 
       [cc] General_TTestClient.cpp 
       [cc]
C:\obj\test\generated\cpp\General_TTest\General_TTestClient.cpp(78) :
warning C4101: 'e' : unreferenced local variable 
       [cc]
C:\obj\test\generated\cpp\General_TTest\General_TTestClient.cpp(165) :
warning C4508: 'main' : function should return a value; 'void' return
type assumed 
       [cc] Generating Code... 
       [cc] Starting link 
       [cc]    Creating library General_TTest.lib and object
General_TTest.exp 
  
callCompileLinkedClient: 
  
compileClient: 
  
validateClientCompilationIfBuilding: 
     [echo] General_TTest - Client Compilation - PASSED 
  
validateClientCompilationIfNotBuilding: 
  
validateClientCompilation: 
  
checkIfDebug: 
  
createConfigurationFile: 
  
createStartOfWSDDFile: 
  
compileTestHandlers: 
  
createEndOfWSDDFile: 
  
updateConfigurationWithClientWSDDEntry: 
  
compileHandlers: 
  
buildTest: 
  
executeTestRun: 
  
setResultExpectations: 
     [copy] Copying 1 file to C:\obj\test\generated\cpp\General_TTest 
  
setRequestExpectations: 
  
setServerResponse: 
  
setExpectations: 
  
setEndpoint: 
  
setForMonitor: 
  
setVerbatim: 
  
checkIfEndpointSet: 
  
setForNoMonitor: 
  
setProxyArgs: 
  
setTestArgs: 
  
executeTest: 
  
startMonitor: 
     [echo] Running Test General_TTest
http://localhost:${test.port}/axis/CalculatorDoc 
[stopwatch] [General_TTest.timer: 5.144 sec] 
     [echo] General_TTest - Execution Time - 5.144 sec 
  
stopMonitor: 
  
OS400ConvertOutputFiles: 
  
validateTestClient: 
     [echo] General_TTest - Client Execution - FAILED 
  
validateMessageOnWire: 
  
validateTest: 
  
runTest: 
  
displayAllResults: 
     [echo] Test Results 
     [echo] 
     [echo] General_TTest - Client Compilation - PASSED 
     [echo] General_TTest - Execution Time - 5.144 sec 
     [echo] General_TTest - Client Execution - FAILED 
  
testSuite: 
  
BUILD SUCCESSFUL 
Total time: 15 seconds 
  
It seems that test.port property is not set properly. 
  
Here I use the test port as 80 and the monitor port is also 80. If I use
a monitor port different from test port, more tests start to fail. 
  
  
And another mistake in the CVS. There's no MultiOut.cpp.out file in
\ws-axis\c\tests\auto_build\testcases\output folder. So test framework
fails to copy this file so fails. Instead of this file, there a file
called MultiOut.expected. 
  
Regards, 
Dushshantha 
  
 
________________________________


From: John Hawkins [mailto:HAWKINSJ@uk.ibm.com] 
Sent: Friday, June 10, 2005 1:54 PM
To: Apache AXIS C Developers List
Subject: RE: More changes 
  

Can you show me the ant output pls? 

We run the tests twice daily and are seeing no issues. 
"Samisa Abeysinghe" <SA...@virtusa.com> 
10/06/2005 07:33 
 
Please respond to
"Apache AXIS C Developers List"
 
To
"Apache AXIS C Developers List" <ax...@ws.apache.org> 
cc
  
Subject
RE: More changes

  
 
  
 




With the latest updates, I could get the client test framework is
running. 
However, this tends to hang in the middle of the list of tests - and the
place it hangs is not consistent. 
  
Thanks, 
Samisa... 
  
-----Original Message-----
From: John Hawkins [mailto:HAWKINSJ@uk.ibm.com] 
Sent: Thursday, June 09, 2005 6:07 PM
To: Apache AXIS C Developers List
Subject: RE: More changes 
  

You must be on windows ! 

I put a new flag into the test.win32.properties called mockserver 
unfortunately I've set it to true as defect. Make it false and you
should be fine. I'll change the file in cvs to be false now. 
"Dushshantha Chandradasa" <dc...@virtusa.com> 
09/06/2005 12:45 
  
 
Please respond to
"Apache AXIS C Developers List"
  
 
To
"Apache AXIS C Developers List" <ax...@ws.apache.org> 
cc
  
Subject
RE: More changes
  
  
 
  
 



Hi john, 

I got the latest checkout and tested. I'm still getting the error that
Samisa stated before. 

setServerResponse: 

BUILD FAILED 
C:\axiscpp\ws-axis\c\test.xml:46: The following error occurred while
executing 
his line: 
C:\axiscpp\ws-axis\c\test.xml:138: The following error occurred while
executing 
this line: 
C:\axiscpp\ws-axis\c\build\executeTest.xml:51: Warning: Could not find
file C:\ 
xiscpp\ws-axis\c\tests\auto_build\testcases\output\${test.expected.serve
rRespon 
se} to copy. 

I guess that the server Response file not set correctly. Is the
framework picking it from the xml file where test details are included
?? (ex:
C:\axiscpp\ws-axis\c\tests\auto_build\testcases\tests\AxisBench.xml )
But in the CVS, this file is the same old file. 

Dushshantha 
  
  
________________________________


From: John Hawkins [mailto:HAWKINSJ@uk.ibm.com] 
Sent: Thursday, June 09, 2005 4:05 PM
To: axis-c-dev@ws.apache.org
Subject: More changes 


And you also need to get the latest of services.xml and test.xml