excel2feature/templates/00_home_index.feature.j2

33 lines
679 B
Django/Jinja

# encoding:UTF-8
@{{ project }}
@excel
Feature: {{ sheet_name }}
Background:
Given I active "{{ sheet_name }}"
Scenario: 更新记录
Then I set "A1" value
"""
{{ project | upper }}测试用例
"""
And I load the table
| 版本号| 修改日期 | 修改内容 | 修订人 |
{%- for lines in Scenario_table %}
| {{ lines |join(' | ') }} |
{%- endfor %}
Scenario: 调整样式
# 指定区内自动换行
Then I auto set wrap start at "A5"
"""
{
"horizontal": "left",
"vertical": "center"
}
"""
#使用的范围加上边框
Then I auto set border