Skip to content

Instantly share code, notes, and snippets.

@seleniumgists
Created September 10, 2019 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seleniumgists/611f224c0a0e562f569a617f2c25b14a to your computer and use it in GitHub Desktop.
Save seleniumgists/611f224c0a0e562f569a617f2c25b14a to your computer and use it in GitHub Desktop.
generated automatically from #selenium on seleniumhq slack
{
"id": "130ca86f-9e33-460f-afa1-7c92eb1bf39d",
"name": "#1690-- 修改工单优先级",
"commands": [{
"id": "e91c8de7-47a9-4d64-83f7-1385f3c5d946",
"comment": "",
"command": "run",
"target": "登录--管理员账号",
"targets": [],
"value": ""
}, {
"id": "ba27cc8f-e9d5-422a-ada2-0d0aa16759b9",
"comment": "",
"command": "run",
"target": "工单管理",
"targets": [],
"value": ""
}, {
"id": "d810b79f-70b9-47f5-a6e4-530fd101b327",
"comment": "生成随机的工单名称,并保存到变量ticketName中",
"command": "executeScript",
"target": "return \"ticketName\" + Math.round(Math.random()*10000)",
"targets": [],
"value": "ticketName"
}, {
"id": "7cf0d18d-99ee-432b-9792-96684328db83",
"comment": "",
"command": "run",
"target": "工单管理--所有工单过滤器--新增工单",
"targets": [],
"value": ""
}, {
"id": "20b59e55-e40e-4642-8224-b296026ac017",
"comment": "",
"command": "run",
"target": "全局搜索工单",
"targets": [],
"value": ""
}, {
"id": "8d0c9935-826c-452c-b03c-7009c628644c",
"comment": "",
"command": "//改为紧急",
"target": "",
"targets": [],
"value": ""
}, {
"id": "8335f823-b556-42fb-89d2-545810c68fbe",
"comment": "将鼠标移动到修改优先级的下拉框上",
"command": "mouseOver",
"target": "xpath=//div[2]/div/div[3]/div/div/div[2]/div/div",
"targets": [],
"value": ""
}, {
"id": "867ab612-af37-47c3-a4bd-eb91a918e8b3",
"comment": "点击右侧属性区优先级选项框",
"command": "click",
"target": "xpath=//div[2]/div/div[3]/div/div/div[2]/div/div",
"targets": [
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div", "xpath:position"]
],
"value": ""
}, {
"id": "57b268f6-d48f-462e-a7d8-ea9af5b5a702",
"comment": "将鼠标移动到“紧急”选项上",
"command": "mouseOver",
"target": "css=label.urgency",
"targets": [],
"value": ""
}, {
"id": "d34f8491-c5c8-4f33-a969-9d19853789ad",
"comment": "点击紧急",
"command": "click",
"target": "css=.urgency",
"targets": [
["css=.urgency", "css:finder"],
["xpath=//div[3]/div/div/div[2]/div/div[2]/ul/li/label", "xpath:position"],
["xpath=//label[contains(.,' 紧急')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "66cb3a46-7465-48e1-8f89-0023459cc4db",
"comment": "断言优先级变为紧急",
"command": "assertElementPresent",
"target": "css=div > .urgency",
"targets": [
["css=div > .urgency", "css:finder"],
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div/div/span", "xpath:position"],
["xpath=//span[contains(.,' 紧急')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "36b66122-5f14-4197-9a39-febf2f7980cb",
"comment": "",
"command": "//改为高",
"target": "",
"targets": [],
"value": ""
}, {
"id": "c04d4f18-d5d9-468d-9788-62b463d928de",
"comment": "将鼠标移动到修改优先级的下拉框上",
"command": "mouseOver",
"target": "xpath=//div[2]/div/div[3]/div/div/div[2]/div/div",
"targets": [
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div", "xpath:position"]
],
"value": ""
}, {
"id": "2e478c5b-0cf0-45d4-87b0-f25fe1f7496a",
"comment": "点击右侧属性区优先级选项框",
"command": "click",
"target": "xpath=//div[2]/div/div[3]/div/div/div[2]/div/div",
"targets": [
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div", "xpath:position"]
],
"value": ""
}, {
"id": "ab00a215-0fa1-435b-81d1-bbba1fc70d69",
"comment": "将鼠标移动到“高”选项上",
"command": "mouseOver",
"target": "css=label.high",
"targets": [],
"value": ""
}, {
"id": "26297b61-43bd-489c-9b7f-7baffdc96293",
"comment": "点击高",
"command": "click",
"target": "css=.high",
"targets": [
["css=.high", "css:finder"],
["xpath=//div[3]/div/div/div[2]/div/div[2]/ul/li[2]/label", "xpath:position"],
["xpath=//label[contains(.,' 高')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "24fa4ee1-a75e-49ba-aaba-34d519b22cb0",
"comment": "断言优先级变为高",
"command": "assertElementPresent",
"target": "css=div > .high",
"targets": [
["css=div > .high", "css:finder"],
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div/div/span", "xpath:position"],
["xpath=//span[contains(.,' 高')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "4774c295-fbcc-455a-92d0-b5fdad743933",
"comment": "",
"command": "//改为标准",
"target": "",
"targets": [],
"value": ""
}, {
"id": "346d7853-d4f9-465c-a999-f7a4d5f79e4d",
"comment": "将鼠标移动到修改优先级的下拉框上",
"command": "mouseOver",
"target": "xpath=//div[2]/div/div[3]/div/div/div[2]/div/div",
"targets": [
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div", "xpath:position"]
],
"value": ""
}, {
"id": "23c11678-0638-420e-96c0-add909e24ed2",
"comment": "点击右侧属性区优先级选项框",
"command": "click",
"target": "xpath=//div[2]/div/div[3]/div/div/div[2]/div/div",
"targets": [
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div", "xpath:position"]
],
"value": ""
}, {
"id": "2b5181ad-131e-4ef6-9c30-479b3bf72084",
"comment": "将鼠标移动到“标准”选项上",
"command": "mouseOver",
"target": "css=label.medium",
"targets": [],
"value": ""
}, {
"id": "629116c0-6981-43f0-963a-9e978ae57642",
"comment": "点击标准",
"command": "click",
"target": "css=.medium",
"targets": [
["css=.medium", "css:finder"],
["xpath=//div[3]/div/div/div[2]/div/div[2]/ul/li[3]/label", "xpath:position"],
["xpath=//label[contains(.,' 标准')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "80547186-16e1-40df-870b-f59a3a9822f8",
"comment": "断言优先级变为标准",
"command": "assertElementPresent",
"target": "css=div > .medium",
"targets": [
["css=div > .medium", "css:finder"],
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div/div/span", "xpath:position"],
["xpath=//span[contains(.,' 标准')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "41505808-7f5b-4dc7-a809-32481fa8db3f",
"comment": "",
"command": "//改为低",
"target": "",
"targets": [],
"value": ""
}, {
"id": "236fb83a-9266-41e8-b344-3b1b9cbf5bc9",
"comment": "将鼠标移动到修改优先级的下拉框上",
"command": "mouseOver",
"target": "xpath=//div[2]/div/div[3]/div/div/div[2]/div/div",
"targets": [
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div", "xpath:position"]
],
"value": ""
}, {
"id": "da321a2b-b8b2-490a-b06f-9e71f16cd1b4",
"comment": "点击右侧属性区优先级选项框",
"command": "click",
"target": "xpath=//div[2]/div/div[3]/div/div/div[2]/div/div",
"targets": [
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div", "xpath:position"]
],
"value": ""
}, {
"id": "beaf2208-db17-4135-9046-18348863c9ce",
"comment": "将鼠标移动到“低”选项上",
"command": "mouseOver",
"target": "css=label.low",
"targets": [],
"value": ""
}, {
"id": "dc695441-248b-4e7a-9fef-527779b9f4b2",
"comment": "点击低",
"command": "click",
"target": "css=.low",
"targets": [
["css=.low", "css:finder"],
["xpath=//div[3]/div/div/div[2]/div/div[2]/ul/li[4]/label", "xpath:position"],
["xpath=//label[contains(.,' 低')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "99b28124-7b95-4308-b5ba-471220148c0e",
"comment": "断言优先级变为低",
"command": "assertElementPresent",
"target": "css=div > .low",
"targets": [
["css=div > .low", "css:finder"],
["xpath=//div[2]/div/div[3]/div/div/div[2]/div/div/div/span", "xpath:position"],
["xpath=//span[contains(.,' 低')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "7b5284d9-0b60-4054-9c99-a95f36af929d",
"comment": "",
"command": "run",
"target": "工单管理--工单详情页--删除工单",
"targets": [],
"value": ""
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment