Integrated configuration of mantis + testlink bug System

Source: Internet
Author: User

My colleagues at the company said that the new bug system showed an error when testlink assigned test cases.

The reason is that the configuration is not completed. You can solve this problem after reconfiguration,

During the connection between testlink and mantis, you must configure the database connection to display it normally.

Testlink provides functions integrated with tools such as Bugzilla and mantis.

Testlink and Mantis are installed on the same server:

  • Mantis link: http: // localhost/mantis/
  • Link to testlink: http: // localhost/testlink/
  • Mantis Database Name: bugtracker
  • MySQL Login Name: Root
  • Logon password: Root

 

I,Modify the config. Inc. php file under testlink

1. Open the config. Inc. php file under testlink and change $ g_interface_bugs = 'no' to $ g_interface_bugs = 'mantis ';

 

Define ('tl _ interface_bugs ', 'mantis ');

Require_once (tl_abs_path. 'lib/bugtracking/int_bugtracking.php ');

Ii. SettingsMantis anonymous login function

Mantis anonymous users have the permission to browse all projects. Note: This dummy user must be added in the background by the Administrator and cannot be registered.

1. Modify the config_inc.php file of mantis and add the following code:

 

# --- Change the default value to simplified Chinese -------------

$ G_default_language = "chinese_simplified"; # The default language is simplified Chinese.

$ G_allow_signup = on; # whether to allow new user registration. On is allowed, off is not allowed.

 

# --- Logon Settings -------------

$ G_max_failed_login_count = 5;

$ G_show_realname = on; # whether anonymous logon is allowed; on is allowed; off is not allowed

$ G_allow_anonymous_login = on;

$ G_anonymous_account = 'dummy ';

 

2. Modify the Mantis/config_defaults_inc.php file:

# --- Anonymous login -----------

# Allow Anonymous login

$ G_allow_anonymous_login = on;

$ G_anonymous_account = 'dummy ';

 

# --- Mail settings -------------

$ G_administrator_email = "mantis @ *****. com ";#

$ G_webmaster_email = "mantis @ *****. com"; # administrator email account

 

$ G_from_email = "mantis @ *****. com"; # The sender account. That is, Mantis automatically sends emails to the displayed user account.

$ G_return_path_email = "mantis @ *****. com"; # email reply address

$ G_enable_email_notification = on; # Enable email notification

$ G_smtp_host = "mail. *****. com"; # SMTP Server

$ G_smtp_username = "username"; # email logon Username

$ G_smtp_password = "password"; # email logon Password

$ G_use_phpmailer = on; # Use phpmailer to send emails

$ G_phpmailer_path = "C:/XAMPP/htdocs/mantis/CORE/phpmailer"; # phpmailer storage path

$ G_phpmailer_method = 2; # phpmailer sends an email using SMTP

 

# --- Other settings -------------

$ G_show_project_menu_bar = on; # Whether to display the project selection column. On is displayed, off is not displayed.

$ G_show_queries_count = on; # Whether to display the number of queries executed in the footer. On is displayed, off is not displayed.

$ G_default_new_account_access_level = developer; # default user level

$ G_view_summary_threshold = viewer; # Set the viewing permission

$ G_window_title = "defect tracking management system"; # browser title

$ G_page_title = "defect tracking management system"; # page title bar

$ G_max_failed_login_count = 5; # default number of Logon failures

$ G_show_realname = on; # display real name

$ G_allow_anonymous_login = on; # Allow Anonymous logon.

$ G_anonymous_account = 'dummy'; # username for anonymous logon

 

# --- Date setting -------------

$ G_short_date_format = "Y-m-d"; # short date format. y indicates 4-digit year in uppercase.

$ G_normal_date_format = "Y-m-d h: I"; # Normal Date Format

$ G_complete_date_format = "Y-m-d h: I: s"; # complete Date Format

 

# --- Report Settings -------------

$ G_use_jpgraph = on;

$ G_jpgraph_path = "C:/XAMPP/htdocs/mantis/CORE/jpgraph-2.3.3/src/"; # Set the jpgraph path

$ G_graph_font = 'Chinese _ GBK ';

 

III,Configure mantis interface parameters in testlink.

You must edit/CFG/Mantis. cfg. php under testlink as follows:

 

/** The dbhost to use when connecting to the Mantis dB */

Define ('bug _ track_db_host ', 'localhost ');

/** The nameof the database that contains the Mantis tables */

 

Define ('bug _ track_db_name ', 'bugtracker ');

/** The dbtype being used by mantis

Values: MySQL, MSSQL, Postgres */

Define ('bug _ track_db_type ', 'mysql ');

/** The dbtype being used by mantis */

Define ('bug _ track_db_user ', 'root ');

/** The dbpassword to use for connecting to the Mantis dB */

Define ('bug _ track_db_pass ', 'root ');

/** Link tothe bugtracking system, for viewing bugs */

Define ('bug _ track_href ', "http: // localhost/mantis/view. php? Id = ");

/** Link tothe bugtracking system, for entering new bugs */

Define ('bug _ track_enter_bug_href ', "http: // localhost/mantis /");

If the email cannot be sent, you can disable anonymous access in mantis config.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.