Skip to content

Instantly share code, notes, and snippets.

@kaqfa
Last active December 8, 2023 08:26
Show Gist options
  • Save kaqfa/560ad0326f0da4dcaeea7b9ffe24f1da to your computer and use it in GitHub Desktop.
Save kaqfa/560ad0326f0da4dcaeea7b9ffe24f1da to your computer and use it in GitHub Desktop.
Bootcamp Question Test Script
{
"id": "148edab2-3271-4bae-ab23-83112dc75008",
"version": "2.0",
"name": "Bootcamp Test",
"url": "http://localhost:8000",
"tests": [{
"id": "49636379-e70e-4758-82db-e75616aad032",
"name": "Create Question",
"commands": [{
"id": "a40351e3-33bd-44a7-ba54-835eb749cb50",
"comment": "",
"command": "open",
"target": "/",
"targets": [],
"value": ""
}, {
"id": "3abe7085-06ef-40ef-a13a-b16a39d76b76",
"comment": "",
"command": "setWindowSize",
"target": "927x1032",
"targets": [],
"value": ""
}, {
"id": "e3ea2f93-9d24-44e6-a50c-db9cc4c54327",
"comment": "",
"command": "click",
"target": "css=.btn",
"targets": [
["css=.btn", "css:finder"],
["xpath=//a[contains(text(),'Start Session')]", "xpath:link"],
["xpath=//body[@id='page-top']/header/div/div/div[2]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/accounts/login/')]", "xpath:href"],
["xpath=//div[2]/a", "xpath:position"]
],
"value": ""
}, {
"id": "777b4c6b-abc1-4e5a-b591-59d8c99801be",
"comment": "",
"command": "type",
"target": "id=id_login",
"targets": [
["id=id_login", "id"],
["name=login", "name"],
["css=#id_login", "css:finder"],
["xpath=//input[@id='id_login']", "xpath:attributes"],
["xpath=//div[@id='div_id_login']/div/input", "xpath:idRelative"],
["xpath=//div/input", "xpath:position"]
],
"value": "kaqfa"
}, {
"id": "d21ce8bb-647c-4699-bd68-996cef4133a8",
"comment": "",
"command": "type",
"target": "id=id_password",
"targets": [
["id=id_password", "id"],
["name=password", "name"],
["css=#id_password", "css:finder"],
["xpath=//input[@id='id_password']", "xpath:attributes"],
["xpath=//div[@id='div_id_password']/div/input", "xpath:idRelative"],
["xpath=//div[2]/div/input", "xpath:position"]
],
"value": "firdaus123"
}, {
"id": "38684da4-d0a3-4981-8d08-d0601920ce51",
"comment": "",
"command": "click",
"target": "css=.login100-form-btn",
"targets": [
["css=.login100-form-btn", "css:finder"],
["xpath=//button[@type='submit']", "xpath:attributes"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Login')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "8b9aeaa0-3a1b-4bdd-b91a-869b56c24406",
"comment": "",
"command": "click",
"target": "linkText=Q&A",
"targets": [
["linkText=Q&A", "linkText"],
["css=.nav-item:nth-child(3) > .nav-link", "css:finder"],
["xpath=//a[contains(text(),'Q&A')]", "xpath:link"],
["xpath=//div[@id='navbarSupportedContent']/ul[2]/li[3]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/qa/')]", "xpath:href"],
["xpath=//li[3]/a", "xpath:position"],
["xpath=//a[contains(.,'Q&A')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "e685694a-093a-4cb4-ad4c-6a012451bca3",
"comment": "",
"command": "click",
"target": "linkText=Ask a Question",
"targets": [
["linkText=Ask a Question", "linkText"],
["css=.btn-primary", "css:finder"],
["xpath=//div[@id='header']/div/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/qa/ask-question/')]", "xpath:href"],
["xpath=//div[2]/div/a", "xpath:position"],
["xpath=//a[contains(.,' Ask a Question')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "7ad94015-45a5-48af-af14-cd7be9d44571",
"comment": "",
"command": "click",
"target": "id=id_title",
"targets": [
["id=id_title", "id"],
["name=title", "name"],
["css=#id_title", "css:finder"],
["xpath=//input[@id='id_title']", "xpath:attributes"],
["xpath=//div[@id='div_id_title']/div/input", "xpath:idRelative"],
["xpath=//div/div/input", "xpath:position"]
],
"value": ""
}, {
"id": "e7d1db5d-433b-4851-ab40-6fe7ea0ebca1",
"comment": "",
"command": "type",
"target": "id=id_title",
"targets": [
["id=id_title", "id"],
["name=title", "name"],
["css=#id_title", "css:finder"],
["xpath=//input[@id='id_title']", "xpath:attributes"],
["xpath=//div[@id='div_id_title']/div/input", "xpath:idRelative"],
["xpath=//div/div/input", "xpath:position"]
],
"value": "Pertanyaan pertama"
}, {
"id": "7f2288e7-1068-4134-9148-f6cfe11949e0",
"comment": "",
"command": "type",
"target": "id=id_content",
"targets": [
["id=id_content", "id"],
["name=content", "name"],
["css=#id_content", "css:finder"],
["xpath=//textarea[@id='id_content']", "xpath:attributes"],
["xpath=//div[@id='div_id_content']/div/div/textarea", "xpath:idRelative"],
["xpath=//textarea", "xpath:position"]
],
"value": "Pertama yang mau ditanyaian\t\t"
}, {
"id": "28ce48ab-1421-43c2-9e8d-55c58c70bbf7",
"comment": "",
"command": "click",
"target": "id=id_tags",
"targets": [
["id=id_tags", "id"],
["name=tags", "name"],
["css=#id_tags", "css:finder"],
["xpath=//input[@id='id_tags']", "xpath:attributes"],
["xpath=//div[@id='div_id_tags']/div/input", "xpath:idRelative"],
["xpath=//div[3]/div/input", "xpath:position"]
],
"value": ""
}, {
"id": "46de9af2-d80d-4461-b0d9-4d953bd7e228",
"comment": "",
"command": "type",
"target": "id=id_tags",
"targets": [
["id=id_tags", "id"],
["name=tags", "name"],
["css=#id_tags", "css:finder"],
["xpath=//input[@id='id_tags']", "xpath:attributes"],
["xpath=//div[@id='div_id_tags']/div/input", "xpath:idRelative"],
["xpath=//div[3]/div/input", "xpath:position"]
],
"value": "tanya"
}, {
"id": "e8693cf7-fab4-4935-b727-a625b17b3f96",
"comment": "",
"command": "click",
"target": "id=publish",
"targets": [
["id=publish", "id"],
["css=#publish", "css:finder"],
["xpath=//button[@id='publish']", "xpath:attributes"],
["xpath=//form[@id='question-form']/div[4]/button", "xpath:idRelative"],
["xpath=//div[4]/button", "xpath:position"],
["xpath=//button[contains(.,'Publish')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "d0ac6461-1679-4eb5-be84-364edf2d1138",
"comment": "",
"command": "click",
"target": "id=navbarDropdown",
"targets": [
["id=navbarDropdown", "id"],
["linkText=kaqfa", "linkText"],
["css=#navbarDropdown", "css:finder"],
["xpath=//a[@id='navbarDropdown']", "xpath:attributes"],
["xpath=//div[@id='navbarSupportedContent']/ul[3]/li/a", "xpath:idRelative"],
["xpath=(//a[contains(@href, '#')])[3]", "xpath:href"],
["xpath=//ul[3]/li/a", "xpath:position"]
],
"value": ""
}, {
"id": "3865da6e-8e6c-4238-be3a-4733e167ea4a",
"comment": "",
"command": "click",
"target": "linkText=Log Out",
"targets": [
["linkText=Log Out", "linkText"],
["css=.dropdown-item:nth-child(3)", "css:finder"],
["xpath=//a[contains(text(),'Log Out')]", "xpath:link"],
["xpath=//div[@id='navbarSupportedContent']/ul[3]/li/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/accounts/logout/')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'  Log Out')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "94923c91-fa84-4165-883f-8aca2d93badc",
"comment": "",
"command": "click",
"target": "css=.btn-danger",
"targets": [
["css=.btn-danger", "css:finder"],
["xpath=//button[@type='submit']", "xpath:attributes"],
["xpath=//div[@id='header']/div/div/form/button", "xpath:idRelative"],
["xpath=//form/button", "xpath:position"],
["xpath=//button[contains(.,'Sign Out')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "c26e5b0d-4788-43b1-aa02-33958c4efc02",
"comment": "",
"command": "close",
"target": "",
"targets": [],
"value": ""
}]
}, {
"id": "78a1f042-6fcc-4f3d-9f70-0bba4a45b016",
"name": "Answer Question",
"commands": [{
"id": "91df6162-dd4e-4094-98e1-f95494d4d406",
"comment": "",
"command": "open",
"target": "/",
"targets": [],
"value": ""
}, {
"id": "985e9958-9ec6-4281-a8d8-043c54d3b60c",
"comment": "",
"command": "setWindowSize",
"target": "927x1032",
"targets": [],
"value": ""
}, {
"id": "0ff48695-a73f-49d4-aaf2-07ba48d6c7d4",
"comment": "",
"command": "click",
"target": "css=.btn",
"targets": [
["css=.btn", "css:finder"],
["xpath=//a[contains(text(),'Start Session')]", "xpath:link"],
["xpath=//body[@id='page-top']/header/div/div/div[2]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/accounts/login/')]", "xpath:href"],
["xpath=//div[2]/a", "xpath:position"]
],
"value": ""
}, {
"id": "8654efdb-1f1c-45e2-ab2d-c2d2dd76cc8c",
"comment": "",
"command": "click",
"target": "id=id_login",
"targets": [
["id=id_login", "id"],
["name=login", "name"],
["css=#id_login", "css:finder"],
["xpath=//input[@id='id_login']", "xpath:attributes"],
["xpath=//div[@id='div_id_login']/div/input", "xpath:idRelative"],
["xpath=//div/input", "xpath:position"]
],
"value": ""
}, {
"id": "c5625023-a5dd-4a86-9ac9-5be02e30e1cb",
"comment": "",
"command": "type",
"target": "id=id_login",
"targets": [
["id=id_login", "id"],
["name=login", "name"],
["css=#id_login", "css:finder"],
["xpath=//input[@id='id_login']", "xpath:attributes"],
["xpath=//div[@id='div_id_login']/div/input", "xpath:idRelative"],
["xpath=//div/input", "xpath:position"]
],
"value": "kaqfa"
}, {
"id": "892d2be8-677a-4263-bd88-4df391addb63",
"comment": "",
"command": "type",
"target": "id=id_password",
"targets": [
["id=id_password", "id"],
["name=password", "name"],
["css=#id_password", "css:finder"],
["xpath=//input[@id='id_password']", "xpath:attributes"],
["xpath=//div[@id='div_id_password']/div/input", "xpath:idRelative"],
["xpath=//div[2]/div/input", "xpath:position"]
],
"value": "firdaus123"
}, {
"id": "7a770014-b202-446b-b4c4-60d205a9a20a",
"comment": "",
"command": "click",
"target": "css=.login100-form-btn",
"targets": [
["css=.login100-form-btn", "css:finder"],
["xpath=//button[@type='submit']", "xpath:attributes"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Login')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "aaebf3de-8b0e-406e-9ede-9b1b22982180",
"comment": "",
"command": "click",
"target": "linkText=Q&A",
"targets": [
["linkText=Q&A", "linkText"],
["css=.nav-item:nth-child(3) > .nav-link", "css:finder"],
["xpath=//a[contains(text(),'Q&A')]", "xpath:link"],
["xpath=//div[@id='navbarSupportedContent']/ul[2]/li[3]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/qa/')]", "xpath:href"],
["xpath=//li[3]/a", "xpath:position"],
["xpath=//a[contains(.,'Q&A')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "3a3f287d-a788-48c6-8b1e-ded6d358100f",
"comment": "",
"command": "click",
"target": "linkText=Pertanyaan pertama",
"targets": [
["linkText=Pertanyaan pertama", "linkText"],
["css=.card-title > a", "css:finder"],
["xpath=//a[contains(text(),'Pertanyaan pertama')]", "xpath:link"],
["xpath=//div[@id='header']/div[3]/div/div/div[2]/h4/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/qa/question-detail/4/')]", "xpath:href"],
["xpath=//h4/a", "xpath:position"],
["xpath=//a[contains(.,'Pertanyaan pertama')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "32100c4f-1911-4293-98c1-d574e4df85cd",
"comment": "",
"command": "click",
"target": "linkText=Submit an answer",
"targets": [
["linkText=Submit an answer", "linkText"],
["css=.btn:nth-child(3)", "css:finder"],
["xpath=//a[contains(text(),'Submit an answer')]", "xpath:link"],
["xpath=//div[@id='header']/div[2]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/qa/propose-answer/4/')]", "xpath:href"],
["xpath=//div[2]/a", "xpath:position"],
["xpath=//a[contains(.,'Submit an answer')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "d6be5b89-bb7d-4630-be43-130373711eed",
"comment": "",
"command": "click",
"target": "id=id_content",
"targets": [
["id=id_content", "id"],
["name=content", "name"],
["css=#id_content", "css:finder"],
["xpath=//textarea[@id='id_content']", "xpath:attributes"],
["xpath=//div[@id='div_id_content']/div/div/textarea", "xpath:idRelative"],
["xpath=//textarea", "xpath:position"]
],
"value": ""
}, {
"id": "5aa3fb31-90c0-46b3-b069-0bac2895ce9b",
"comment": "",
"command": "type",
"target": "id=id_content",
"targets": [
["id=id_content", "id"],
["name=content", "name"],
["css=#id_content", "css:finder"],
["xpath=//textarea[@id='id_content']", "xpath:attributes"],
["xpath=//div[@id='div_id_content']/div/div/textarea", "xpath:idRelative"],
["xpath=//textarea", "xpath:position"]
],
"value": "Jawabanyya adalah ini"
}, {
"id": "dea8946d-c916-476a-9ed0-00f9bc36417f",
"comment": "",
"command": "click",
"target": "id=answer",
"targets": [
["id=answer", "id"],
["css=#answer", "css:finder"],
["xpath=//button[@id='answer']", "xpath:attributes"],
["xpath=//form[@id='answerForm']/div[2]/button", "xpath:idRelative"],
["xpath=//div[2]/button", "xpath:position"],
["xpath=//button[contains(.,'Answer')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "84f4fe1d-24a2-4261-a65f-e5d4d51b45ca",
"comment": "",
"command": "click",
"target": "id=navbarDropdown",
"targets": [
["id=navbarDropdown", "id"],
["linkText=kaqfa", "linkText"],
["css=#navbarDropdown", "css:finder"],
["xpath=//a[@id='navbarDropdown']", "xpath:attributes"],
["xpath=//div[@id='navbarSupportedContent']/ul[3]/li/a", "xpath:idRelative"],
["xpath=(//a[contains(@href, '#')])[3]", "xpath:href"],
["xpath=//ul[3]/li/a", "xpath:position"]
],
"value": ""
}, {
"id": "b9747bfa-52bf-44b4-bca1-ebc56a81dc7a",
"comment": "",
"command": "click",
"target": "linkText=Log Out",
"targets": [
["linkText=Log Out", "linkText"],
["css=.dropdown-item:nth-child(3)", "css:finder"],
["xpath=//a[contains(text(),'Log Out')]", "xpath:link"],
["xpath=//div[@id='navbarSupportedContent']/ul[3]/li/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/accounts/logout/')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'  Log Out')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "e74bab6e-8bc1-4908-b404-8c2225161fa9",
"comment": "",
"command": "click",
"target": "css=.btn-danger",
"targets": [
["css=.btn-danger", "css:finder"],
["xpath=//button[@type='submit']", "xpath:attributes"],
["xpath=//div[@id='header']/div/div/form/button", "xpath:idRelative"],
["xpath=//form/button", "xpath:position"],
["xpath=//button[contains(.,'Sign Out')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "c4e34de4-d187-4fa0-8803-747b2eeb78fb",
"comment": "",
"command": "close",
"target": "",
"targets": [],
"value": ""
}]
}, {
"id": "23ddb2c5-b467-45e1-b1ea-55cd3fe1c985",
"name": "Vote answer",
"commands": [{
"id": "fa10334b-5727-4121-aedd-39f23a449343",
"comment": "",
"command": "open",
"target": "/",
"targets": [],
"value": ""
}, {
"id": "b00898b3-44ff-4876-bdf5-e4ab3ab6ef37",
"comment": "",
"command": "setWindowSize",
"target": "927x1032",
"targets": [],
"value": ""
}, {
"id": "6dcdccce-02db-4d22-920b-f8cccb197e25",
"comment": "",
"command": "click",
"target": "css=.btn",
"targets": [
["css=.btn", "css:finder"],
["xpath=//a[contains(text(),'Start Session')]", "xpath:link"],
["xpath=//body[@id='page-top']/header/div/div/div[2]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/accounts/login/')]", "xpath:href"],
["xpath=//div[2]/a", "xpath:position"]
],
"value": ""
}, {
"id": "4ec20352-9627-4758-82d7-9746fe3791b9",
"comment": "",
"command": "click",
"target": "id=id_login",
"targets": [
["id=id_login", "id"],
["name=login", "name"],
["css=#id_login", "css:finder"],
["xpath=//input[@id='id_login']", "xpath:attributes"],
["xpath=//div[@id='div_id_login']/div/input", "xpath:idRelative"],
["xpath=//div/input", "xpath:position"]
],
"value": ""
}, {
"id": "287cd22d-a1d6-4558-af54-4fc2e1d2e1fd",
"comment": "",
"command": "type",
"target": "id=id_login",
"targets": [
["id=id_login", "id"],
["name=login", "name"],
["css=#id_login", "css:finder"],
["xpath=//input[@id='id_login']", "xpath:attributes"],
["xpath=//div[@id='div_id_login']/div/input", "xpath:idRelative"],
["xpath=//div/input", "xpath:position"]
],
"value": "kaqfa"
}, {
"id": "40c24267-4979-4e08-8c79-fddb77701b6f",
"comment": "",
"command": "mouseOver",
"target": "css=.login100-form-btn",
"targets": [
["css=.login100-form-btn", "css:finder"],
["xpath=//button[@type='submit']", "xpath:attributes"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Login')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5e2e8297-ef7d-4994-9f0c-2185e14fb92c",
"comment": "",
"command": "type",
"target": "id=id_password",
"targets": [
["id=id_password", "id"],
["name=password", "name"],
["css=#id_password", "css:finder"],
["xpath=//input[@id='id_password']", "xpath:attributes"],
["xpath=//div[@id='div_id_password']/div/input", "xpath:idRelative"],
["xpath=//div[2]/div/input", "xpath:position"]
],
"value": "firdaus123"
}, {
"id": "6910f159-ee0d-444d-8685-6138036c78ea",
"comment": "",
"command": "click",
"target": "css=.login100-form-btn",
"targets": [
["css=.login100-form-btn", "css:finder"],
["xpath=//button[@type='submit']", "xpath:attributes"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Login')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "135ff9f7-7e6b-48f4-8a9f-ac0b1489563d",
"comment": "",
"command": "click",
"target": "linkText=Q&A",
"targets": [
["linkText=Q&A", "linkText"],
["css=.nav-item:nth-child(3) > .nav-link", "css:finder"],
["xpath=//a[contains(text(),'Q&A')]", "xpath:link"],
["xpath=//div[@id='navbarSupportedContent']/ul[2]/li[3]/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/qa/')]", "xpath:href"],
["xpath=//li[3]/a", "xpath:position"],
["xpath=//a[contains(.,'Q&A')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b2872b4d-3ae0-4907-b6f8-183d74839f7e",
"comment": "",
"command": "click",
"target": "linkText=Pertanyaan pertama",
"targets": [
["linkText=Pertanyaan pertama", "linkText"],
["css=.card-title > a", "css:finder"],
["xpath=//a[contains(text(),'Pertanyaan pertama')]", "xpath:link"],
["xpath=//div[@id='header']/div[3]/div/div/div[2]/h4/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/qa/question-detail/4/')]", "xpath:href"],
["xpath=//h4/a", "xpath:position"],
["xpath=//a[contains(.,'Pertanyaan pertama')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "6c5f20d2-c969-4c3a-99d4-8f64116f407f",
"comment": "",
"command": "click",
"target": "id=acceptAnswer",
"targets": [
["id=acceptAnswer", "id"],
["css=#acceptAnswer", "css:finder"],
["xpath=//i[@id='acceptAnswer']", "xpath:attributes"],
["xpath=//div[@id='header']/div[4]/ul/div/div/i[3]", "xpath:idRelative"],
["xpath=//i[3]", "xpath:position"]
],
"value": ""
}, {
"id": "8b55e9dc-f98b-49fc-8783-63d23271851f",
"comment": "",
"command": "click",
"target": "id=navbarDropdown",
"targets": [
["id=navbarDropdown", "id"],
["linkText=kaqfa", "linkText"],
["css=#navbarDropdown", "css:finder"],
["xpath=//a[@id='navbarDropdown']", "xpath:attributes"],
["xpath=//div[@id='navbarSupportedContent']/ul[3]/li/a", "xpath:idRelative"],
["xpath=(//a[contains(@href, '#')])[3]", "xpath:href"],
["xpath=//ul[3]/li/a", "xpath:position"]
],
"value": ""
}, {
"id": "0b9ef505-e636-41f7-96bc-2738dc5f8c07",
"comment": "",
"command": "click",
"target": "linkText=Log Out",
"targets": [
["linkText=Log Out", "linkText"],
["css=.dropdown-item:nth-child(3)", "css:finder"],
["xpath=//a[contains(text(),'Log Out')]", "xpath:link"],
["xpath=//div[@id='navbarSupportedContent']/ul[3]/li/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/accounts/logout/')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'  Log Out')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "93e86b0f-4aae-4f38-8c83-e2e7d4e57c1c",
"comment": "",
"command": "click",
"target": "css=.btn-danger",
"targets": [
["css=.btn-danger", "css:finder"],
["xpath=//button[@type='submit']", "xpath:attributes"],
["xpath=//div[@id='header']/div/div/form/button", "xpath:idRelative"],
["xpath=//form/button", "xpath:position"],
["xpath=//button[contains(.,'Sign Out')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2071074f-5fbe-4ace-a352-d1438b442c9a",
"comment": "",
"command": "close",
"target": "",
"targets": [],
"value": ""
}]
}, {
"id": "e3147c60-91e2-4ea7-8ce3-6fbddf3337c4",
"name": "Delete question",
"commands": [{
"id": "83944455-bc9e-45cc-839a-225ef4b72977",
"comment": "",
"command": "open",
"target": "/admin/login/?next=/admin/",
"targets": [],
"value": ""
}, {
"id": "d102762b-7dd9-45ee-86bd-a58437468eaa",
"comment": "",
"command": "setWindowSize",
"target": "927x1032",
"targets": [],
"value": ""
}, {
"id": "609f34c0-245e-45aa-bd72-0ab48e2d248a",
"comment": "",
"command": "type",
"target": "id=id_username",
"targets": [
["id=id_username", "id"],
["name=username", "name"],
["css=#id_username", "css:finder"],
["xpath=//input[@id='id_username']", "xpath:attributes"],
["xpath=//form[@id='login-form']/div/input", "xpath:idRelative"],
["xpath=//div/input", "xpath:position"]
],
"value": "admin"
}, {
"id": "0fdb7ac5-ecac-434c-875c-3330114a218f",
"comment": "",
"command": "type",
"target": "id=id_password",
"targets": [
["id=id_password", "id"],
["name=password", "name"],
["css=#id_password", "css:finder"],
["xpath=//input[@id='id_password']", "xpath:attributes"],
["xpath=//form[@id='login-form']/div[2]/input", "xpath:idRelative"],
["xpath=//div[2]/input", "xpath:position"]
],
"value": "a"
}, {
"id": "4f82dd18-2a94-400b-96d8-3a2ddc142eed",
"comment": "",
"command": "click",
"target": "css=.submit-row > input",
"targets": [
["css=.submit-row > input", "css:finder"],
["xpath=//input[@value='Log in']", "xpath:attributes"],
["xpath=//form[@id='login-form']/div[3]/input", "xpath:idRelative"],
["xpath=//div[3]/input", "xpath:position"]
],
"value": ""
}, {
"id": "b2b0c5bd-7f7e-4bb1-a80b-f94e7a0238b5",
"comment": "",
"command": "click",
"target": "linkText=Questions",
"targets": [
["linkText=Questions", "linkText"],
["css=.model-question > th > a", "css:finder"],
["xpath=//a[contains(text(),'Questions')]", "xpath:link"],
["xpath=//div[@id='content-main']/div[8]/table/tbody/tr/th/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/admin/qa/question/')]", "xpath:href"],
["xpath=//div[8]/table/tbody/tr/th/a", "xpath:position"],
["xpath=//a[contains(.,'Questions')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "2e34cacd-589e-4310-ab77-bbc0c92f91c9",
"comment": "",
"command": "click",
"target": "id=action-toggle",
"targets": [
["id=action-toggle", "id"],
["css=#action-toggle", "css:finder"],
["xpath=//input[@id='action-toggle']", "xpath:attributes"],
["xpath=//table[@id='result_list']/thead/tr/th/div/span/input", "xpath:idRelative"],
["xpath=//span/input", "xpath:position"]
],
"value": ""
}, {
"id": "9b9c3b2b-851e-4ecd-824d-6d0d0f8b1768",
"comment": "",
"command": "click",
"target": "name=action",
"targets": [
["name=action", "name"],
["css=select", "css:finder"],
["xpath=//select[@name='action']", "xpath:attributes"],
["xpath=//form[@id='changelist-form']/div/label/select", "xpath:idRelative"],
["xpath=//select", "xpath:position"]
],
"value": ""
}, {
"id": "05cb3ff3-4c80-4653-ae3d-10899ca0e61a",
"comment": "",
"command": "select",
"target": "name=action",
"targets": [],
"value": "label=Delete selected Questions"
}, {
"id": "a138c3ef-0d56-489b-85af-e40a79b547bc",
"comment": "",
"command": "click",
"target": "name=index",
"targets": [
["name=index", "name"],
["css=.button", "css:finder"],
["xpath=//button[@name='index']", "xpath:attributes"],
["xpath=//form[@id='changelist-form']/div/button", "xpath:idRelative"],
["xpath=//form/div/button", "xpath:position"],
["xpath=//button[contains(.,'Go')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "6beb2650-c7d6-4a68-835d-39fbd2ad8c55",
"comment": "",
"command": "click",
"target": "css=input:nth-child(4)",
"targets": [
["css=input:nth-child(4)", "css:finder"],
["xpath=//input[@value='Yes, I’m sure']", "xpath:attributes"],
["xpath=//div[@id='content']/form/div/input[4]", "xpath:idRelative"],
["xpath=//input[4]", "xpath:position"]
],
"value": ""
}, {
"id": "4a743aab-1cd9-461e-b01d-ddb4bb338821",
"comment": "",
"command": "click",
"target": "css=a:nth-child(4)",
"targets": [
["css=a:nth-child(4)", "css:finder"],
["xpath=//a[contains(text(),'Log out')]", "xpath:link"],
["xpath=//div[@id='user-tools']/a[3]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/admin/logout/')]", "xpath:href"],
["xpath=//a[3]", "xpath:position"]
],
"value": ""
}, {
"id": "d807f211-1ec2-4793-bbfa-825dd5ec2cab",
"comment": "",
"command": "close",
"target": "",
"targets": [],
"value": ""
}]
}],
"suites": [{
"id": "b55320bd-362a-4931-aa29-b6dbb83c6f53",
"name": "Question Testing",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["49636379-e70e-4758-82db-e75616aad032", "78a1f042-6fcc-4f3d-9f70-0bba4a45b016", "23ddb2c5-b467-45e1-b1ea-55cd3fe1c985", "e3147c60-91e2-4ea7-8ce3-6fbddf3337c4"]
}],
"urls": ["http://localhost:8000/"],
"plugins": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment