Translate

terça-feira, 26 de novembro de 2013

Edgewall TRAC: result list ( Test Execution), adding "Passed (Restriction)" option

Adicionar a opção "Passed (Restriction)" na listagem de resultados;


a. Em "lib/results/resultsByStatus.php", adicionar "restriction":

418: foreach(array('failed','blocked','not_run','restriction') as $verbose_status)
b. Em "cfg/const.inc.php", inserir " 'restriction!' => 'r',":



383: $tlCfg->results['status_code'] = array (
384:   'failed'        => 'f',
385:   'blocked'       => 'b',
386:   'passed'        => 'p',
387:   'restriction'   => 'r',
388:   'not_run'       => 'n',
389:   'not_available' => 'x',
390:   'unknown'       => 'u',
391:   'all'           => 'a'
392: );
Inserir " 'restriction' => 'test_status_restriction',":



408: $tlCfg->results['status_label'] = array('not_run' => 'test_status_not_run',
409:                     'passed' => 'test_status_passed',
410:                     'failed' => 'test_status_failed',
411:                     'blocked'=> 'test_status_blocked',
412:                     'restriction' => 'test_status_restriction',
413:                       'all' => 'test_status_all_status',
414:                       'not_available' => 'test_status_not_available',
415:                     'unknown' => 'test_status_unknown');
Inserir " 'restriction' => 'test_status_restriction',":



434: $tlCfg->results['status_label_for_exec_ui'] = array('not_run' => 'test_status_not_run',
435:                           'passed'  => 'test_status_passed',
436:                           'restriction' => 'test_status_restriction',
437:                           'failed'  => 'test_status_failed',
438:                           'blocked' => 'test_status_blocked');
Inserir " 'restriction' => 'FFCC00' ":



450: $tlCfg->results['charts']['status_colour'] = array('not_run' => '000000','passed'  => '006400',
451:                            'failed'  => 'B22222','restriction' => 'FFCC00','blocked' => '00008B');
c. Em "gui/themes/default/css/testlink.css", inserir o seguinte estilo CSS:



577: div.passed, div.failed, div.blocked, div.not_run, div.restriction {
Inserir o seguinte na linha 588:



588: div.restriction {
589:       background:             #FFCC00; /* yellow */
590: }
Inserir "span.light_restriction":



606: span.light_passed, span.light_failed, span.light_blocked,
607: span.light_not_run, span.light_not_available, span.light_unknown,
608: span.light_restriction
Inserir:



631: span.light_restriction {
631:         background:             #FFCC00;
631: }
Inserir:



664: .restriction {
665:         color:                  white;
666:         background:             #FFCC00;
667: }
Inserir:




687: .restriction_text {
688:         color:    #FFCC00;
689:         font-weight: bold;
690: }
d. Inserir tradução nos idiomas desejados
Português do Brasil - "locale/pt_BR/strings.txt", "$TLS_test_status_restriction = "Passou com ressalva";":



231: $TLS_test_status_restriction = "Passou com ressalva";
Inglês Americano - "locale/en_US/strings.txt", "$TLS_test_status_restriction = "Passed (restriction)";":



231: $TLS_test_status_restriction = "Passed (restriction)";

Nenhum comentário:

Postar um comentário