3.5. Registering Your Test.

Setting Up Your Binary Regression Test.

This will walk you through a typical scenario of registering a test set and attaching a test(s) to that test set. Note: For any of the commands below, if you see the following error message:

SOAP::Lite -> 500 Internal Server Error at /usr/lib/perl5/site_perl/OSDL/Util/RPCClient.pm line 90

Test_request was not requested.

Has your login expired?
To test if you are logged in, run:

   brt_user.pl testMe.

If you are logged in, then it means is that an incorrect field was entered. For example, a test name could have been mispelled, or a wrong id given. We are quickly trying to fix up this Error to be more informative and not so abraisive. Thanks for your patience.

  1. First you need to login as a BRT user.

    brt_user.pl login

    This will ask for your user name and password. This is the same user name and password you used when you signed up as an OSDL lab associate. If you are not an OSDL lab associate please register as a lab associate first, before logging in as a brt user.

    http://www.osdl.org/join_form

  2. There is a document called 'How To Port Tests' which describes how to port tests for STP. BRT is following the same rules and will update this document in due time with the BRT specific changes. I will list the changes from this document here.
  3. In order to run a test(s), it/they have to be grouped into a test set. Even if you have only 1 test to run, the test set is comprised of that single test. To register a test set please execute the following command and follow it's instructions. Also, please be sure to note the test set id that it output. (Some example output is below)

    brt_user.pl register test

    cl002 root # brt_user.pl register test
    
    Doing a 'register' for type 'test'
    Enter values for the following keys:
    
         Input for descriptor [no default] :   alpha_final
         Is 'alpha_final' correct?  y
    
         Input for status [default:  ACTIVE ]:
         Is 'ACTIVE' correct?  y
    
         Input for configuration_notes [no default] :
         Is '' correct?  y
    
         Input for environment_default [no default] :
         Is '' correct?  y
    
         Input for repeat_safe [default:  1 ]:
         Is '1' correct?  y
    
         Input for category [no default] :
         Is '' correct?  y
    
         Input for description [no default] :   last alpha test
         Is 'last alpha test' correct?  y
    
    Test alpha_final has been registered as ID [ 24 ].
    
  4. Now that you have registered a test set, you can now attach a single test or multiple tests to that test set. To do this please execute the following command where < id > is the test set id that was given to you from the previous step. (Some example output is below)

    brt_user.pl register sub_test --attach < id >

    cl002 root # brt_user.pl register sub_test --attach 24
    
    Doing a 'register' for type 'sub_test'
    Enter values for the following keys:
    
         Input for code_location [no default] :   http://www.osdl.org/~robot/stp-tests/exampletest.tar.gz
         Is 'http://www.osdl.org/~robot/stp-tests/exampletest.tar.gz' correct?  y
    
         Input for descriptor [no default] :   exampletest
         Is 'exampletest' correct?  y
    
         Input for version [no default] :   1.0
         Is '1.0' correct?  y
    
         Input for description [no default] :   quick example test
         Is 'quick example test' correct?  y
    
    Sub_test exampletest has been registered as ID [ 13 ].
    

If you have any difficulties, please mail the mailing list binary_sig@lists.osdl.org.