You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2004/08/19 12:05:59 UTC

cvs commit: ws-axis/c/tests/auto_build/testcases Readme.txt

damitha     2004/08/19 03:05:58

  Modified:    c/tests/auto_build/testcases Readme.txt
  Log:
  Added more notes how to write your own automated test cases
  
  Revision  Changes    Path
  1.2       +34 -0     ws-axis/c/tests/auto_build/testcases/Readme.txt
  
  Index: Readme.txt
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/Readme.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Readme.txt	19 Aug 2004 07:27:24 -0000	1.1
  +++ Readme.txt	19 Aug 2004 10:05:58 -0000	1.2
  @@ -81,3 +81,37 @@
      "Regression test on wsdls/MathOps.wsdl for c++ success"
   
   
  +When you want to add a new test please be aware of the following simple steps.
  +
  +1. Write the cpp file containing your main method of access and put
  +   it in $AXISCPP_HOME/tests/auto-build/testcases/client/cpp
  +    NOTES: Each client cpp file must have the same basename as the 
  +    WSDL  file plus Client.
  +    Example: SimpleTypeArray.wsdl -> SimpleTypeArrayClient.c[pp]
  +
  +2. Put the wsdl you hope to test in
  +   testcases/wsdls
  +
  +3. Give the server and port running the webservice in 
  +   testcases/platform/linux/test.config file
  +
  +4. Add the following entry into the testcases/runAllTests.sh
  +
  +   runTestCase.sh wsdls/<your-wsdl-name.wsdl c++
  +   [[ $? -eq 0 ]] && passed=$(($passed + 1))
  +
  +5. cd to testcases and run runAllTests.sh
  +   You will have a new folder creaed in testcases/build folder with the 
  +   same name as the client cpp file name.
  +   First time you should get run FAIL message. That's because you still
  +   does not have a .out file indicating your expected result. We will
  +   create this in the next step
  +
  +7. in testcases/build/<automaticall creaed your client folder> you will
  +   see a file named <Your client file name>.cpp.out
  +   Copy this file into testcases/output
  +
  +8. run runAllTests.sh again. This time you should get your test passed
  +   with SUCCESS.
  +   This time the build/<Your client file name>.cpp.out matchs correctly
  +   with the pre created output in testcases/output