31 lines
718 B
Django/Jinja
31 lines
718 B
Django/Jinja
# encoding:UTF-8
|
|
@{{ project }}
|
|
@excel
|
|
Feature: {{ sheet_name }}
|
|
|
|
Background:
|
|
Given I active "{{ sheet_name }}"
|
|
|
|
Scenario: 添加异常测试
|
|
Then I load the table
|
|
| 序号 | JIRA号 | 版本号 | 问题描述 | 操作步骤 | 测试数据 | 预期结果 | 是否自动化 |
|
|
{%- for lines in Scenario_table %}
|
|
| {{ lines |join(' | ') }} |
|
|
{%- endfor %}
|
|
|
|
|
|
Scenario: 调整样式
|
|
#自动生成用例编号
|
|
Then I set case_number on "A"
|
|
#自动换行并居中
|
|
Then I auto set wrap start at "D5"
|
|
"""
|
|
{
|
|
"horizontal": "left",
|
|
"vertical": "center"
|
|
}
|
|
"""
|
|
#使用的范围加上边框
|
|
Then I auto set border
|
|
|