Hello everyone, we are very proud to introduce to you the ZenTao automated testing framework ZTF - ZenTaoATF (zentaoautotestingframework) developed by our ZenTao development team. ZenTaoATF has only one script file and can support automated test scripts written in various scripting languages. It has simple syntax and flexible use. It will be bound and integrated with ZenTao project management software in the future.
The basic working principle of ZenTaoATF, an automated testing framework First, you need to write a test script to implement your normal test logic. Now supports php, python, ruby, lua, tcl, bash.
This test script is written according to the business logic of the program you are testing, such as linking to the database, querying a certain record, etc.
Then write basic use case information for this test script through comments: title, steps and expected results, using YAML syntax format.
<<
expect:helloworld.
TC
Then execute the zt script. The zt script will scan the scripts with use case flags in the current directory, then call the execution to get the actual output of each script, and then compare it with the expected results recorded in advance in the use case. If they match , if it succeeds, if it fails, calculate the diff information.
Compared with other automated testing frameworks or unit testing frameworks,
Main features of ZenTaoATF 1.Simple
1.1 The program is simple. The entire automated testing framework has only one zt file. It is very convenient to develop, install and run using PHP.
1.2 Simple syntax
The syntax of ZenTaoATF is only a simple title, steps, and expected results. It adopts yaml format, which is convenient to write and very readable.
2. Cross-language
The ZenTaoATF framework itself is developed using PHP, but it supports a variety of scripting languages, such as python, ruby, lua, tcl, bash, bat, etc.
3. Cross-platform
ZenTaoATF can run on various platforms. (Currently only supports Linux, Windows 1.1 version will be added)
4. Integrate with ZenTao project management software
In subsequent versions, we will integrate and bind it with ZenTao open source project management software, and scripts and use cases can be organically combined.
Installation and use of ZenTao automated testing framework ZTF How to install:
1. Currently, zentaoatf only supports Linux and BSD systems. Please install the PHP operating environment first.
2. Download the zentaoatf package and extract it to a directory.
3. After decompression, there is a zt php script. Use the command chmoda+rxzt to add executable permissions to it.
4. For the convenience of later use, you can consider copying the zt script to the /usr/local/bin directory.
How to run:
1. After downloading the zentaoatf package, there are two directories in it, one is the basic syntax, and the other is the format of various script languages.
2. You can execute zt in this directory to run the automated test script. The effect of execution is as follows: