[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [jakartaee-tck-dev] Debug a single test | 
I added an example of starting a subset of webservices12 (should work 
for webservices13) on 
https://github.com/eclipse-ee4j/jakartaee-tck/wiki/Instructions-for-running-the-nightly-engineering-build-of-Platform-TCK-with-Podman-(currently-for-EE-9) 
You could follow the commands on ^, just skip the Podman (replacement 
for Docker that works on Fedora 32+) command and last two 
"jakartaeetck/docker/run_jakartaeetck.sh" calls and instead specify the 
full path to the test folder that you want to run tests for, something like:
bash -x jakartaeetck/docker/run_jakartaeetck.sh 
webservices13/servlet/WSMTOMFeaturesTestUsingDDs
You also need to update jakartaeetck/docker/run_jakartaeetck.sh to hack 
in changes to run GlassFish in debug mode, I think that would be around 
line 416 and changing:
${CTS_HOME}/ri/${GF_RI_TOPLEVEL_DIR}/glassfish/bin/asadmin --user admin 
--passwordfile ${ADMIN_PASSWORD_FILE} -p ${PORT} start-domain
To something like:
${CTS_HOME}/ri/${GF_RI_TOPLEVEL_DIR}/glassfish/bin/asadmin --user admin 
--passwordfile ${ADMIN_PASSWORD_FILE} -p ${PORT} start-domain --debug
Scott
On 8/31/20 6:46 PM, Gurkan Erdogdu wrote:
Hi Steve
Assume that you started up Glassfish in debug mode:
If you setup your local TCK correctly, then
Go to test folder which contains Client.java
For example: 
jakartaeetck/src/com/sun/ts/tests/ejb/ee/bb/session/stateless/bm/allowedmethodstest
In the Client.java, find @testName such as slbmAllowedMethodsTest1
 >> *ant -Dtest=slbmAllowedMethodsTest1 runclient*
Regards.
Gurkan
On Tue, Sep 1, 2020 at 1:37 AM Steve Millidge (Payara) 
<steve.millidge@xxxxxxxxxxx> wrote:
    Hi All,____
    __ __
    I am getting close to fixing a bunch of tests in the webservices12
    and the remaining test in webservices13 however I need to debug the
    server. Does anybody know an easy way to run a single test in the
    TCK so that I can attach a debugger to GlassFish?____
    __ __
    Thanks____
    __ __
    Steve____
    _______________________________________________
    jakartaee-tck-dev mailing list
    jakartaee-tck-dev@xxxxxxxxxxx <mailto:jakartaee-tck-dev@xxxxxxxxxxx>
    To unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/jakartaee-tck-dev
--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com
_______________________________________________
jakartaee-tck-dev mailing list
jakartaee-tck-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jakartaee-tck-dev