config:
base_url: http://127.0.0.1:8000/login/action/
variables:
username: lixiaofeng
password: 123456
sql: select au.username from auth_user au limit 1
quote: 引用login檔案
test_user_login_case:
test_message_case:
test_step:
- skip: 跳過
- sleep: "2"
- screenshot: 異常截圖
- click:
type: xpath
locate: //div[@class="navbar-header"]/div[2]/div[3]/button
- click:
type: xpath
locate: //a[@href="/nb/message/"]
- assert_text:
type: xpath
locate: //*[@id="layout-wrapper"]/div[2]/div/div/div[1]/div/div/h4
text: 訊息通知
- click:
type: xpath
locate: //div[@class="pull-right"]/button
- sleep: "2"
- assert_text:
type: id
locate: prompt-title
text: 確認要將所有通知標記為【已讀】嗎?
- click:
type: xpath
locate: //div[@class="modal-content"]/div[3]/button[2]
- sleep: "2"
- step: 斷言
- assert_text:
type: id
locate: alert
text: 暫無未讀通知
- screenshot: 成功截圖
- sleep: "3"
story: 用例-新增模組管理
title: 新增模組
description: 該用例是針對 新增模組 的測試
epic: 介面平臺
feature: 訊息模組