Java automation test framework - 04 - Test Method of TestNG
From: https://www.cnblogs.com/du-hong/p/11718894.html
brief introduction
According to the plan in the previous article, this one will share the test method with the kids.
1, Set parameters
Test methods can have Parameters. Each test method can have any number of Parameters, and you can pass the correct Parameters to the method by using Te ...
Posted by Okami on Sat, 09 May 2020 01:06:00 -0700
lnmp build (Nginx1.12.1; MySQL 5.7.20; php7.2.0)
Install dependent packages:
#yum install gcc bison bison-devel zlib-devel libmcrypt-devel mcrypt mhash-devel openssl-devel libxml2-devel libcurl-devel bzip2-devel readline-devel libedit-devel sqlite-devel libpng-devel libjpeg-devel freetype freetype-devel
Create a WW user:
#groupadd www
#useradd -g www -s /sbin/nolo ...
Posted by ChrisDarl on Fri, 08 May 2020 11:18:51 -0700
Quick upgrade of ZABBIX version 5.0
Zabbix 5.0 has added many new functions, such as vertical menu, hidden menu, test items in user interface, limit agent check, find and replace preprocessing step ES7 support, etc.. Let's deploy and experience Zabbix 5.0
Upgrade Notice
Upgrade requirements
PHP version
PHP version has been upgraded from minimum 5.4.0 to 7.2.0
Database ver ...
Posted by dmcentire on Thu, 07 May 2020 23:02:03 -0700
The jam caused by the setting of [MySQL] time zone
Author: Tian Jie It's not uncommon for a long query execution time to cause an application aware "jam" in the daily support and use of the database, but the SQL execution "jam" caused by the time zone setting is still an interesting phenomenon, which has not been specifically concerned before. This customer's meticulous and ...
Posted by WowAddict on Thu, 07 May 2020 03:57:46 -0700
Explanation of MySQL skip name resolve
mysql connection is slow. Log in to the server to view mysql logs:IP address 'XX.XX.XX.XX' has been resolved to the host name 'XX.XX.XX.XX.ro.ovo.sc', which resembles IPv4-address itself.The reason is that mysql performs DNS reverse resolution on the connected client.There are two solutions:1. Write the ip address of the client in the / etc/ ...
Posted by lohmk on Wed, 06 May 2020 22:54:02 -0700
Python+Flask build a movie download website
1. Words written in the front
I still want to learn Python well. I have learned the basic grammar part for a long time. With a little penetration of the application part, I can go to data analysis, crawler, web, machine learning and other aspects, and have a long way to go.OK, no more nonsense, start programming.
2. Build project structure
F ...
Posted by iffy on Wed, 06 May 2020 08:35:30 -0700
Idea uses the MyBatis Generator plug-in to quickly generate code
1. Add in
Add the following dependencies to the pom.xml file.
Note that this is a plugin
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.4.0</version>
</plugin>
2. Write generatorConfig.xml
Place th ...
Posted by Benjigga on Tue, 05 May 2020 14:01:18 -0700
Implementation of PHP+MySQL paging principle
Function introduction: including previous page, next page, first page, last page, jump page and other functions.
Code message: turn complexity into simplicity, and you will be enlightened.
Running screenshot:
Key steps:
After the database is created, dozens of data are inserted to facilitate testing.
CREATE TABLE `page` (
`ID` int(10) ...
Posted by the_damo2004 on Tue, 05 May 2020 09:30:37 -0700
Docker virtualization management: 30 minutes to learn how to use Docker
There are too many official introductions about Docker on the Internet that I won't post. As a practical experience, Docker can greatly simplify the process of setting up environment and deploying services, greatly reduce the time cost of deployment, and free your hands.
This article will not go into the Docker underlying architecture and how ...
Posted by my8by10 on Tue, 05 May 2020 08:36:27 -0700
MySQL command auto completion tool -- mycli installation
1. Install pip based on python
[root@mysql ~]# yum -y install python-pip python-devel
[root@mysql ~]# crul https://bootstrap.pypa.io/get-pip.py -o get-pip.py
[root@mysql ~]# python get-pip.py # Don't worry if yellow words or similar words appear in this command. It's not an error. It's just a warning that Python version is lower than ...
Posted by drak on Tue, 05 May 2020 00:43:02 -0700