<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6972</bug_id>
          
          <creation_ts>2009-05-28 07:48:25 +0000</creation_ts>
          <short_desc>Command-line: possibility to specify different configuration settings</short_desc>
          <delta_ts>2009-05-29 14:14:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Java Library</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="fd">fd</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25339</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-05-28 07:48:25 +0000</bug_when>
    <thetext>Description
-----
When the library is used as a real library and plugged into some other application, it&apos;s easy to change the TesterConfiguration instance used by the Checker prior to calling the Tester.runTests(...) method.

When the library is used as a stand-alone application through the command-line, there is currently no way to change the configuration that the Checker will use. The Checker defaults to the mobileOK configuration, period.


Solutions
-----
The long-term solution is to define all configuration settings in an XML configuration file and specify the configuration file using some parameter on the command-line, but that requires some time, so that&apos;s not a priority IMHO.

One possible short-to-mid-term solution is to specify the name of a class that returns the TesterConfiguration instance, i.e. something like:

 &quot;-c org.myorg.myConfiguration&quot;

... and this class would be used through Java reflexion to instantiate the appropriate configuration settings.

Obvsiously, the library in itself only contains one such class:

 org.w3c.mwi.mobileok.basic.MobileOKConfiguration

... so the parameter would be a bit moot in practice when the code is not extended. But then it&apos;s harmless and makes it possible to extend the library while still using the same command-line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25363</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-05-29 14:14:05 +0000</bug_when>
    <thetext>Yeliz updated the Tester class consequently, implementing the proposed solution.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>