How to manually run tck tests

Introduction #

During the automated testing of TCK, you may want to manually run individual tests for validations after you make specific changes. To run the manual tests of TCK, you need to do the below steps:

Instructions #

  1. Add the following line to portal-ext.properties: tck.url=true
  2. Copy portlet-tck[REVISION].zip to a working directory (i.e: c:\temp)

It can be obtained from http://hnsp.inf-bb.uni-jena.de/tck/.

  1. Unzip portlet-tck[REVISION].zip to a folder inside portal source working directory, "tck" - [TCKDIR]
  2. Open [TCKDIR]\bin\ts.jte, and set
    vendorPortalURL=http://localhost:8080/c/portal/tck
  3. Under [TCKDIR]\dist, copy whatever .war files you need to the Liferay hot deploy folder to run a specific test. (i.e: If you wanted to execute the ResourceServing test, you would get the .war from: [TCKDIR]\dist\com\sun\ts\tests\portlet\api\javax_portlet\ResourceServing
  4. Start up Liferay. Allow your tck test .war files to deploy.
  5. Open command prompt on [TCKDIR]\bin
  6. Set environment variable TS_HOME to [TCKDIR] (i.e set TS_HOME=C:\temp\tck)
  7. Execute command: tsant.bat gui
  8. When the gui comes up, you need to set a working folder to store your tests. Set it to [TCKDIR]\work.
  9. Go to the specific test you want to run via the tree, and right-click and "Execute these tests"

(i.e: using the example from step 5, browse all the way to ResourceServing in the tree and execute the test)

  1. You will now see the test run through, and pass or fail all the test you specified it to execute.


Note: You'll notice on Liferay/Add Applications, the .war test portlets have been deployed, and you can manually execute each one when adding it to a page.

References #

http://jcp.org/aboutJava/communityprocess/final/jsr286/index.html

http://hnsp.inf-bb.uni-jena.de/download/RI_JSR286.zip

http://hnsp.inf-bb.uni-jena.de/tck/

0 Anexos
4637 Visualizações
Média (0 Votos)
A média da avaliação é 0.0 estrelas de 5.
Comentários