Home » Archived » Jubula » How to best debug an rcp accessibility plugin?
How to best debug an rcp accessibility plugin? [message #689342] |
Mon, 27 June 2011 09:32  |
Eclipse User |
|
|
|
After having a working test-case, I started implementing an rcp accessibility plugin for UML Lab class diagram figures. To debug it, I will have to create a new AUT configuration that starts the UML Lab RCP in debug mode, don't I. What is the recommended way of debugging accessibility plugins for custom figures?
|
|
| |
Re: How to best debug an rcp accessibility plugin? [message #689902 is a reply to message #689432] |
Tue, 28 June 2011 11:07   |
Eclipse User |
|
|
|
Tried B first: works nicely. However the RCP is obfuscated so the Adapter won't work there.
A: used java.exe as the "Executable File Name" and copied the cmd line from my eclipse debug view as the "AUT Arguments". The AUT starts up nicely and remote debugging works, but -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=n,address=localhost:8787,server=y -Xmx2500m -XX:MaxPermSize=512m -Declipse.pde.launch=true -Dfile.encoding=Cp1252 -classpath very/long/path/to/eclipse_launcher.jar org.eclipse.equinox.launcher.Main -product our.product.name.is.also.quite.long -data another/long/path/to/a/workspace/to/prevent/the/workspace/dialog/from/popping/up -configuration "file:yet/another/long/path/to/the/configuration/" -dev "file:last/but/not/least/another/long/path/to/some/dev.properties" -os win32 -ws win32 -arch x86_64 -nl de_DE -consoleLog with correct paths will exceed 400 chars ... resulting in the following error when jubula tries to store result data:
2016: General Database error.
org.eclipse.jubula.client.core.persistence.PMException: Value too long for column AUT_CMD_PARAMETER VARCHAR(400): '-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=n,address=localhost:8787,server=y -Xmx2500m -XX:MaxPermSize=512m -Decli... (744); SQL statement:
INSERT INTO TESTRESULT_SUMMARY (ID, AUT_AGENT_NAME, AUT_CMD_PARAMETER, AUT_CONFIG_NAME, AUT_HOSTNAME, AUT_ID, AUT_NAME, AUT_OS, COMMENT_DETAIL, COMMENT_TITLE, AUT_TOOLKIT, INTERNAL_AUT_CONFIG_GUID, INTERNAL_AUT_GUID, INTERNAL_GUID, INTERNAL_MONITORING_ID, INTERNAL_PROJECT_GUID, INTERNAL_PROJECT_ID, INTERNAL_TEST_JOB_GUID, INTERNAL_TESTSUITE_GUID, MONITORING_VALUE, M_VALUE_TYPE, PROJECT_MAJOR_VERSION, PROJECT_MINOR_VERSION, PROJECT_NAME, MONITORING_REPORT, M_REPORT_WRITTEN, TEST_JOB_NAME, TEST_JOB_START_TIME, TS_DATE, TS_DURATION, TS_END_TIME, TS_EVENTHANDLER_TESTSTEPS, TS_EXECUTED_TESTSTEPS, TS_EXPECTED_TESTSTEPS, TS_FAILED_TESTSTEPS, TS_LANGUAGE, TS_NAME, TS_RELEVANT, TS_START_TIME, TS_STATUS, INTERNAL_VERSION) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [90005-117]
at org.eclipse.jubula.client.core.persistence.PersistenceManager.handleDetailedPersistenceException(PersistenceManager.java:99)
at org.eclipse.jubula.client.core.persistence.PersistenceManager.handleDBExceptionForAnySession(PersistenceManager.java:187)
at org.eclipse.jubula.client.core.persistence.Hibernator.commitTransaction(Hibernator.java:754)
at org.eclipse.jubula.client.core.persistence.TestResultSummaryPM.storeTestResultSummaryInDB(TestResultSummaryPM.java:130)
at org.eclipse.jubula.client.core.ClientTest.writeTestresultToDB(ClientTest.java:1116)
at org.eclipse.jubula.client.core.ClientTest$4.run(ClientTest.java:973)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
To be honest, I think the way I configured the AUT might not be the best for testing / debugging an eclipse application from a workspace. Any suggestions?
|
|
|
Re: How to best debug an rcp accessibility plugin? [message #689908 is a reply to message #689902] |
Tue, 28 June 2011 11:15  |
Eclipse User |
|
|
|
Keep in mind that if your classes are obfuscated, your Adapter will also need to be included in the obfuscation so that it can properly interact with the AUT in a deployed test environment (since testing from the IDE can only get you so far).
With that in mind, you might consider placing the command line that you mentioned into a shell script or batch script. Then you could use that script as the Executable File Name for the AUT Configuration. That should at least get around the database constraints.
|
|
|
Goto Forum:
Current Time: Sat Jul 12 19:51:14 EDT 2025
Powered by FUDForum. Page generated in 0.05053 seconds
|