When a context item cannot be looked up, the name of the context item is not shown / makes diagnosis difficult

Bug #773363 reported by Stephane Mikaty (eCircle AG)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TestPlan
New
Undecided
Unassigned

Bug Description

I'm unable to tell from this output what the context item name actually is.
Can we get the context item name shown on the output as well?

TESTPLAN_JAVA_OPTS=-Djava.protocol.handler.pkgs=HTTPClient -Dhttp.nonProxyHosts=localhost -Dhttp.proxyHost=qabuild02 -Dhttp.proxyPort=80 -DHTTPClient.dontChunkRequests=true testplan/bin/testplan.sh --verbose --scriptDir=conf --scriptDir=conf/cluster-16 --scriptDir=/home/mikaty/workspace/qa/trunk/qa-src/dist/tests --scriptDir=/home/mikaty/workspace/qa/trunk/qa-src/dist/tests/rolist --scriptDir=/home/mikaty/workspace/qa/trunk/qa-src/dist/tests/rolist/testplan/rolist seq.small.CreateUser +system.ptest Debug.Email=mail.txt System.DebugVerify=true Debug.Web=web.txt System.Recorder.CheckpointFile=checkpoint.csv System.Recorder.CheckpointException=checkpoint_ex.txt System.Recorder.WarningFile=warning.txt System.Recorder.MetricFile=metrics.csv Debug.Web.Append=false +conf/system-outside-testlab.ptest Web.Selenium.Host=localhost Web.Selenium.NoSessionCleanup=false
*** Error encountered while starting
testplan.util.TestPlanException$Syntax: Cannot expand context item
 at testplan.util.Context.checkNull(Context.java:135)
 at testplan.util.Context.string(Context.java:176)
 at testplan.auto.EmailUtil.refreshMail(EmailUtil.java:360)
 at testplan.auto.EmailUtil.startup(EmailUtil.java:703)
 at testplan.auto.Run.run(Run.java:175)
 at testplan.auto.JavaRun.run(JavaRun.java:110)
 at testplan.auto.JavaRun.main(JavaRun.java:42)

Revision history for this message
edA-qa (eda-qa) wrote : Re: [Bug 773363] [NEW] When a context item cannot be looked up, the name of the context item is not shown / makes diagnosis difficult

This may be an issue iwth the the thread in which the context is called.
The main thread has translation wrappers which should provide more
information. If you call the same translation wrappers in the thread it
should have the information you need.

On 04/29/2011 05:49 PM, Stephane Mikaty (eCircle AG) wrote:
> Public bug reported:
>
> I'm unable to tell from this output what the context item name actually is.
> Can we get the context item name shown on the output as well?
>
> TESTPLAN_JAVA_OPTS=-Djava.protocol.handler.pkgs=HTTPClient -Dhttp.nonProxyHosts=localhost -Dhttp.proxyHost=qabuild02 -Dhttp.proxyPort=80 -DHTTPClient.dontChunkRequests=true testplan/bin/testplan.sh --verbose --scriptDir=conf --scriptDir=conf/cluster-16 --scriptDir=/home/mikaty/workspace/qa/trunk/qa-src/dist/tests --scriptDir=/home/mikaty/workspace/qa/trunk/qa-src/dist/tests/rolist --scriptDir=/home/mikaty/workspace/qa/trunk/qa-src/dist/tests/rolist/testplan/rolist seq.small.CreateUser +system.ptest Debug.Email=mail.txt System.DebugVerify=true Debug.Web=web.txt System.Recorder.CheckpointFile=checkpoint.csv System.Recorder.CheckpointException=checkpoint_ex.txt System.Recorder.WarningFile=warning.txt System.Recorder.MetricFile=metrics.csv Debug.Web.Append=false +conf/system-outside-testlab.ptest Web.Selenium.Host=localhost Web.Selenium.NoSessionCleanup=false
> *** Error encountered while starting
> testplan.util.TestPlanException$Syntax: Cannot expand context item
> at testplan.util.Context.checkNull(Context.java:135)
> at testplan.util.Context.string(Context.java:176)
> at testplan.auto.EmailUtil.refreshMail(EmailUtil.java:360)
> at testplan.auto.EmailUtil.startup(EmailUtil.java:703)
> at testplan.auto.Run.run(Run.java:175)
> at testplan.auto.JavaRun.run(JavaRun.java:110)
> at testplan.auto.JavaRun.main(JavaRun.java:42)
>
> ** Affects: testplan
> Importance: Undecided
> Status: New
>

--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

Revision history for this message
Stephane Mikaty (eCircle AG) (s-mikaty) wrote :
Download full text (5.4 KiB)

Can we not 'equip' the MailUtil thread to have the same translation wrappers?

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of edA-qa
Sent: Freitag, 29. April 2011 17:59
To: Stephane Mikaty
Subject: Re: [Bug 773363] [NEW] When a context item cannot be looked up, the name of the context item is not shown / makes diagnosis difficult

This may be an issue iwth the the thread in which the context is called.
The main thread has translation wrappers which should provide more information. If you call the same translation wrappers in the thread it should have the information you need.

On 04/29/2011 05:49 PM, Stephane Mikaty (eCircle AG) wrote:
> Public bug reported:
>
> I'm unable to tell from this output what the context item name actually is.
> Can we get the context item name shown on the output as well?
>
> TESTPLAN_JAVA_OPTS=-Djava.protocol.handler.pkgs=HTTPClient
> -Dhttp.nonProxyHosts=localhost -Dhttp.proxyHost=qabuild02
> -Dhttp.proxyPort=80 -DHTTPClient.dontChunkRequests=true
> testplan/bin/testplan.sh --verbose --scriptDir=conf
> --scriptDir=conf/cluster-16
> --scriptDir=/home/mikaty/workspace/qa/trunk/qa-src/dist/tests
> --scriptDir=/home/mikaty/workspace/qa/trunk/qa-src/dist/tests/rolist
> --scriptDir=/home/mikaty/workspace/qa/trunk/qa-src/dist/tests/rolist/t
> estplan/rolist seq.small.CreateUser +system.ptest Debug.Email=mail.txt
> System.DebugVerify=true Debug.Web=web.txt
> System.Recorder.CheckpointFile=checkpoint.csv
> System.Recorder.CheckpointException=checkpoint_ex.txt
> System.Recorder.WarningFile=warning.txt
> System.Recorder.MetricFile=metrics.csv Debug.Web.Append=false
> +conf/system-outside-testlab.ptest Web.Selenium.Host=localhost
> Web.Selenium.NoSessionCleanup=false
> *** Error encountered while starting
> testplan.util.TestPlanException$Syntax: Cannot expand context item
> at testplan.util.Context.checkNull(Context.java:135)
> at testplan.util.Context.string(Context.java:176)
> at testplan.auto.EmailUtil.refreshMail(EmailUtil.java:360)
> at testplan.auto.EmailUtil.startup(EmailUtil.java:703)
> at testplan.auto.Run.run(Run.java:175)
> at testplan.auto.JavaRun.run(JavaRun.java:110)
> at testplan.auto.JavaRun.main(JavaRun.java:42)
>
> ** Affects: testplan
> Importance: Undecided
> Status: New
>

--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

--
You received this bug notification because you are a member of TestPlan Team, which is subscribed to TestPlan.
https://bugs.launchpad.net/bugs/773363

Title:
  When a context item cannot be looked up, the name of the context item
  is not shown / makes diagnosis difficult

Status in TestPlan:
  New

Bug description:
  I'm unable to tell from this output what the context item name actually is.
  Can we get the context item name shown on the output as well?

  TESTPLAN_JAVA_OPTS=-Djava.protocol.handler.pkgs=HTTPClient -Dhttp.nonProxyHosts=localhost -Dhttp.proxyHost=qabuild02 ...

Read more...

Revision history for this message
edA-qa (eda-qa) wrote :

On 04/29/2011 06:07 PM, Stephane Mikaty (eCircle AG) wrote:
> Can we not 'equip' the MailUtil thread to have the same translation
> wrappers?

Yes. They are extracted to a common translation function I believe.

It's also possible that the one particular conversion uses an outdated
lookup which doesn't provide the extended information.

--
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.