Chuyện của sys

DevOps Blog

Hướng dẫn cài đặt TestLink Test Management Tool July 9, 2017

Testlink là gì?

Test-link is most widely used web based open source test management tool. It synchronizes both requirements specification and test specification together. User can create test project and document test cases using this tool. With Test-Link you can create an account for multiple users and assign different user roles. Admin user can manage test cases assignment task.
It supports both automated and manual execution of Test cases. The testers can generate Test Plan and Test Report in a fraction of the time with this tool. It supports test reports in various formats like Excel, MS word, and HTML formats. Apart from these, it also supports integration with many popular defect tracking system like JIRA, MANTIS, BUGZILLA, TRAC, etc. Since it is a web based tool, multiple users can access its functionality at the same time with their credentials and assigned roles. 
Tóm lại, Testlink là 1 công cụ hữu ích cho QA/Tester quản lý các testcase của mình, hỗ trợ cả tự động và manual, có thế kết với các công cụ tracking khác như JIRA, BUGZILLA…

TestLink Stable (NEW!!!! – 1.9.16 – Moka Pot – 20170121)

Vào thời điểm hiện tại thì bản 1.9.16 vẫn là bản Stable, hóng chờ bản 2.x nhưng có vẻ cộng đồng càng lúc càng ít người sử dụng cũng như xây dựng phiên bản mới 🙂
Việc cài đặt Testlink khá đơn giản và có tài liệu hướng dẫn khá rõ ràng, chỉ cần thực hiện step by step là có thể có 1 tool sau vài phút.
Sau đây mình sẽ hướng dẫn cài đặt bản 1.9.16 trên Centos 7
Để chạy được Testlink thì cần có những thành phần sau: database (mysql, mariadb…), php, và nginx là web server.
Thông tin:
php -version
PHP 5.6.30 (cli) (built: Jan 19 2017 22:31:39)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
MySQL Server version: 10.1.21-MariaDB MariaDB Server
/zserver/nginx/sbin/nginx -v
nginx version: nginx/1.10.0
Download: https://sourceforge.net/projects/testlink/files/TestLink%201.9/TestLink%201.9.16/testlink-1.9.16.tar.gz
tar -xvzf testlink-1.9.16.tar.gz
mv testlink-1.9.16 /zserver/
Tạo database trên mysql và chạy câu lệnh tạo database
Create a new empty MySQL database.
CREATE DATABASE testlink CHARACTER SET utf8 COLLATE utf8_general_ci;
Create user to access
GRANT ALL PRIVILEGES ON *.* TO ‘testlink’@’lab4’ identified by ‘test123’;
Install the sql into the newly created database.
mysql -u testlink -h lab4 -p testlink < /zserver/testlink-1.9.16/install/sql/mysql/testlink_create_tables.sql
mysql -u testlink -h lab4 -p testlink < /zserver/testlink-1.9.16/install/sql/mysql/testlink_create_default_data.sql
Taọ file config để chứa thông tin kết nối đến database
Config database
cat /zserver/testlink-1.9.16/config_db.inc.php

<?php // Automatically Generated by TestLink Installer

define(‘DB_TYPE’, ‘mysql’);
define(‘DB_USER’, ‘testlink’);
define(‘DB_PASS’, ‘test123’);
define(‘DB_HOST’, ‘lab4’);
define(‘DB_NAME’, ‘testlink’);
?>
Tạo thư mục để chứa logs và upload
mkdir -p /var/testlink/logs/
mkdir -p /var/testlink/upload_area/
Chú ý:
On Linux or UNIX you must change the permissions of the templates_c directory to be writable by the webserver. From the TestLink root directory run
chmod 777 gui/templates_c
Chạy php dưới user nginx.
chown -R nginx. /var/lib/php/session/
Cấu hình nginx: vi /zserver/nginx/conf/vhost/testlink.conf

server {
listen 8081;
server_name lab4;
root /zserver/testlink-1.9.16;
client_max_body_size 20M;
location / {
index index.php;
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/zserver/tmp/php-fpm.sock;
fastcgi_read_timeout 300;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ /\.ht {
deny all;
}
}

Như vậy là đã cài đặt xong, bạn có thể login vào tool bằng link sau:
Try :http://lab4:8081/login.php
Login : admin/admin
 

3 Comments on Hướng dẫn cài đặt TestLink Test Management Tool
Categories: Tài liệu

System Administrator/ System Engineer là làm gì?

Tùy từng môi trường, tùy công ty, mà chức danh System Administrator (SA) hay System Engineer (SE) sẽ làm những công việc khác nhau, đảm nhiệm nhiều “chức năng” khác nhau, từ việc thay mực máy in, kéo dây điện thoại, chặn truy cập vào trang thiendia.com… cho tới vận hành 1 hệ thống siêu lớn, cung cấp hạ tầng Cloud, quản trị database…

Dạo 1 vòng các trang tuyển dụng, thì đại khái công việc của SA/SE như sau:
Cái này của chuyên hosting

– Quản trị hệ thống máy chủ Web Hosting, Database, Windows, Linux
– Quản trị hệ thống Cloud (VMWare, Xen, Parallels, Virtuozzo)
– Làm việc Backend hỗ trợ cho đội ngũ chăm sóc khách hàng
– Nghiên cứu ứng dụng công nghệ
– Theo dõi, phân tích và xử lý sự cố
– Viết tài liệu triển khai, lập lịch và bảo trì hệ thống

Của 1 công ty Singapore nào đó

– Provide operational and maintenance support for cyber security infrastructure components like SIEM, firewalls, Endpoint systems, intrusion prevention/detection systems, etc.
– Perform corrective actions or routine preventive maintenance tasks, e.g. evaluate, test, and apply critical patches to operating systems, applications, etc.
– Analyzing, correcting and troubleshooting from fault calls remotely and onsite.

Của 1 công ty chuyên về game nào đó

Quản trị vận hành hệ thống game.
Chịu trách nhiệm về khả năng bảo mật, backup, dự phòng của hệ thống.
Chịu trách nhiệm toàn bộ hạ tầng network, servers, ứng dụng cho toàn bộ hệ thống game.
Kết hợp với team sản phẩm design hệ thống game.
Đảm bảo security của hệ thống ở mức tối ưu nhất.

Vậy đề làm được SA/SE thì phải có những kỹ năng, yêu cầu gì?
🙂 Đón xem các bài viết tiếp theo nhé.

No Comments on System Administrator/ System Engineer là làm gì?
Categories: Chuyện nghề

Linux là cái gì?

Việc cần làm đầu tiên của 1 Linux system admin đọc được tiếng Anh và hiểu được Linux là gì?

Từ điện thoại, xe hơi, siêu máy tính cho đến đồ gia dụng, tất cả đều có mặt của hệ điều hành Linux.

Linux. It’s been around since the mid ‘90s, and has since reached a user-base that spans industries and continents. For those in the know, you understand that Linux is actually everywhere. It’s in your phones, in your cars, in your refrigerators, your Roku devices. It runs most of the Internet, the supercomputers making scientific breakthroughs, and the world\’s stock exchanges. But before Linux became the platform to run desktops, servers, and embedded systems across the globe, it was (and still is) one of the most reliable, secure, and worry-free operating systems available.

Vậy nó có giống như Windows XP, Windows 7, Windows 10, MacOS X hay không? Nó bao gồm những thành phần nào? Tại sao lại sử dụng nó?

Just like Windows XP, Windows 7, Windows 8, and Mac OS X, Linux is an operating system. An operating system is software that manages all of the hardware resources associated with your desktop or laptop. To put it simply – the operating system manages the communication between your software and your hardware.
This is the one question that most people ask. Why bother learning a completely different computing environment, when the operating system that ships with most desktops, laptops, and servers works just fine? To answer that question, I would pose another question. Does that operating system you’re currently using really work “just fine”? Or are you constantly battling viruses, malware, slow downs, crashes, costly repairs, and licensing fees?

Ubuntu, Fedora, Arch … khác nhau như thế nào? tại sao lại lắm chuyện khi đưa ra 1 đống “distro”như thế?

Linux has a number of different versions to suit nearly any type of user. From new users to hard-core users, you’ll find a “flavor” of Linux to match your needs. These versions are called distributions (or, in the short form, “distros.”) Nearly every distribution of Linux can be downloaded for free, burned onto disk (or USB thumb drive), and installed (on as many machines as you like).

Nên dùng RedHat hay Ubuntu cho server của bạn? Cái nào là miễn phí hoàn toàn, cái nào phải trả tiền để mua gói dịch vụ hỗ trợ?

Which distribution you use will depend upon the answer to three simple questions:

  • How skilled of a computer user are you?
  • Do you prefer a modern or a standard desktop interface?
  • Server or desktop?

Đọc tới đây là bắt đầu rối tinh rối mù rồi, nhưng vẫn phải quyết định “thử” 1 cái nào đó phù hợp với nhu cầu của mình. Nếu như là 1 system admin hoặc muốn trở thành 1 thứ gì đó tương tự, thì hãy bắt đầu ngay và luôn. Hãy cài đặt nó 🙂

For most, the idea of installing an operating system might seem like a very daunting task. Believe it or not, Linux offers one of the easiest installations of all operating systems. In fact, most versions of Linux offer what is called a Live distribution – which means you run the operating system from either a CD/DVD or USB flash drive without making any changes to your hard drive. You get the full functionality without having to commit to the installation. Once you’ve tried it out, and decided you wanted to use it, you simply double-click the “Install” icon and walk through the simple installation wizard.

Tôi chọn Ubuntu 14.04 LTS cho laptop đang sử dụng và Centos, Ubuntu cho hệ thống máy chủ mình đang vận hành.
Tới đây thì chắc bạn cũng đang bận bịu với việc google cách cài đặt 1 hệ điều hành Linux như thế nào? hoặc là đang google dịch để hiểu bài viết trên nói gì, nhưng dù sao, thì cũng chào mừng các bạn đến 1 thế giới mới sau khi gõ “Linux là gì?”
 
 
 

No Comments on Linux là cái gì?
Tags:
Categories: Linh tinh