Gauge中文文档(5)—语法

来源:互联网 发布:新百伦淘宝店 编辑:程序博客网 时间:2024/04/21 00:31

Specification

Spcification name
===========

or

# Specification name

场景

Scenario name
——————–

or

## Scenario name

标签

Specification Level
=============

Tags: login, admin

Scenario Level
——————

Tags: login-success, admin

Concept

Concept Heading
===============

or

# Concept Heading

步骤

* Step name

参数

"静态参数"

* Check “product” exists

<动态参数>

* Check <product> exists

|表格参数|

* Step that takes a table
| id | name |
|—–|———|
| 123 | John |
| 456 | Mcclain |

在步骤名和表格参数之间不允许有空行

特殊参数

< prefix:value >

文件

* Check if < file:/work/content.txt> is visible

表格

Check if the users exist < table:/User/john/work/users.csv>

注释

注释无格式,任何普通的文本行都被当作注释。

I’m a comment!

图片

内联图片语法如下所示:

![Alt text](/path/to/img.jpg)

![Alt text](/path/to/img.jpg “Optional title”)

图片的路径应该是当前目录的相对路径。

链接

This is [an example](http://getgauge.io “Title”) inline link.

[This link](http://github.com/getgauge/gauge) has no title attribute.

原创粉丝点击