その他
    ホーム 技術発信 DoRuby TestLinkのインストールとお奨めチューニング

    TestLinkのインストールとお奨めチューニング

    この記事はアピリッツの技術ブログ「DoRuby」から移行した記事です。情報が古い可能性がありますのでご注意ください。

    TestLinkはテスト管理システムの1つです。
    以前から気になっていたけど、やっと導入したので、その時のインストール手順とお奨めチューニングを記載します。
    Excel管理の課題からは解放されたけど、TestLinkもかゆい所に手が届かないので、上手く付き合っていく必要はあります。
    その辺は別の機会に記載します。

    ●TestLinkダウンロード

    $ cd /usr/local/src
    $ sudo wget http://sourceforge.net/projects/testlink/files/TestLink%201.9/TestLink%201.9.4/testlink-1.9.4.tar.gz/download
    $ sudo wget http://mattari.sumomo.ne.jp/wp/wp-content/uploads/2011/08/TestLink1-9-3-ja_JP.zip

    ●TestLinkインストール

    $ cd /usr/local/src
    $ sudo tar zxvf testlink-1.9.4.tar.gz
    $ sudo mv testlink-ga-testlink-code testlink-1.9.4

    $ sudo unzip TestLink1-9-3-ja_JP.zip
    $ sudo mv testlink-1.9.4/locale/ja_JP testlink-1.9.4/locale/ja_JP,201211
    $ sudo mv ja_JP testlink-1.9.4/locale/

    $ sudo chown -R apache:wheel testlink-1.9.4
    $ sudo mv testlink-1.9.4 /var/www/html/
    $ ln -s /var/www/html/testlink-1.9.4 /var/www/html/testlink

    ●DBとユーザ追加

    $ mysql -u root -p mysql
    —- ここから —-
    CREATE DATABASE testlink DEFAULT CHARACTER SET utf8;
    GRANT ALL PRIVILEGES ON testlink.* TO testlink@localhost IDENTIFIED BY ‘********’;
    FLUSH PRIVILEGES;
    \q
    —- ここまで —-
    ※「Query OK」と表示されればOK

    ●TestLink設定変更(お奨めチューニング)

    $ cd /var/www/html/testlink
    $ cp -a custom_config.inc.php.example custom_config.inc.php
    $ vi custom_config.inc.php
    —- ここから —-
    //### START 2012/11 ###
    $tlCfg->default_language = ‘ja_JP’;
    $tlCfg->log_path = TL_ABS_PATH . ‘logs/’;
    $g_repositoryPath = TL_ABS_PATH . ‘upload_area/’;
    $g_smtp_host = ‘localhost’;
    $g_tl_admin_email = ‘admin@mydomain.com’;
    $g_from_email = ‘testlink@mydomain.com’;
    $g_return_path_email = ‘admin@mydomain.com’;
    $g_tree_type=’JTREE’;
    $tlCfg->treemenu_type = ‘EXTJS’;
    $tlCfg->sessionInactivityTimeout = 86400;
    $tlCfg->user_self_signup = FALSE;
    $tlCfg->charts_font_path = “/usr/share/fonts/ipa-pgothic/ipagp.ttf”;
    $tlCfg->document_generator->company_name = ‘株式会社**** 御中’;
    $tlCfg->document_generator->company_copyright = ‘Copyright© ‘ . date(‘Y’) . ‘ 株式会社****’;
    $tlCfg->document_generator->confidential_msg = ‘****事業部’;
    $tlCfg->document_generator->company_logo = ‘company_logo.gif’;
    $tlCfg->document_generator->company_logo_height = ’43’;
    //### END ###
    —- ここまで —-

    $ cd /var/www/html/testlink/gui/themes/default/images
    $ wget -c http://mydomain.com/images/logo.gif -O company_logo.gif
    $ chmod 664 company_logo.gif

    $ cd /var/www/html/testlink/locale/ja_JP
    $ sudo cp -a strings.txt strings.txt,201211
    $ sudo vi strings.txt
    —- ここから —-
    //### START 2012/11 ###
    //$TLS_scope = “適用範囲”;
    $TLS_scope = “概要”;
    //### END ###
    —- ここまで —-

    ●TestLink設定

    http://mydomain.com/testlink/
    [New installation]
    Acceptance of License
    ■I agree to the terms set out in this license.
    [Continue]
    Verification of System and configuration requirements
    [Continue]
    Definition of DB access
    Database name:testlink
    Database admin login:testlink
    Database admin password:********
    TestLink DB login:testlink
    TestLink DB password:********
    [Process TestLink Setup!]
    Installation was successful!
    ※「Failed! – Could not create user: ********!」と表示されるけどOK
    [Testlink]
    ログインしてください …
    ログイン名:admin
    パスワード:admin
    [ログイン]
    [My Settings]
    Email:admin@mydomain.com
    Locale:English(wide/UK) ->Japanese
    [Save]
    旧パスワード:admin
    新パスワード:********
    新パスワード(確認):********
    [パスワード変更]

    $ rm -fr /var/www/html/testlink/install

    記事を共有