-
Notifications
You must be signed in to change notification settings - Fork 0
6. Ispitivanje programskog rješenja
- Registracija s ispravnim podacima
- Ispitni slučaj:
- Ulazni podaci: korisničko ime:pokusaj124, email:pokusaj123@gmail.com, lozinka:12345678A
- Očekivani rezultat: Uspješna registracija u sustav
- Dobiveni rezultat: Prolaz ispitivanja
- Budući da su ispravni korisničko ime i lozinka koji su nužni za registraciju i jer je ispravan format email adrese, sustav nas uspješno prijavljuje. Test je uspješan.
- Log Selenium:
- Kod dobivenog izlaza:
{
"id": "c1f7d082-2ce8-4b42-8d7f-e15dda74f1a7",
"version": "2.0",
"name": "1.1",
"url": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"tests": [{
"id": "6ab7875b-15ef-4ae7-8aeb-9802a0fe1f7f",
"name": "1.1",
"commands": [{
"id": "77e51128-a903-4f41-ab66-e0a498513e35",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "a8968b4f-7a9e-4144-b3bf-190c6b88c720",
"comment": "",
"command": "setWindowSize",
"target": "733x853",
"targets": [],
"value": ""
}, {
"id": "2aa037e5-4383-49c4-8d57-559ef602a15b",
"comment": "",
"command": "click",
"target": "linkText=Sign Up",
"targets": [
["linkText=Sign up", "linkText"],
["css=.header-button:nth-child(1)", "css:finder"],
["xpath=//a[contains(text(),'Sign up')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/signup')]", "xpath:href"],
["xpath=//div/div/div/a", "xpath:position"],
["xpath=//a[contains(.,'Sign up')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5b5e32ab-657d-442b-a151-a69960156246",
"comment": "",
"command": "click",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "9528919f-5fc8-47c5-98d1-53500a2bbb55",
"comment": "",
"command": "type",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": "pokusaj124"
}, {
"id": "7e9399cb-47ab-4ce6-b3f9-3df10dcb06fd",
"comment": "",
"command": "type",
"target": "name=email",
"targets": [
["name=email", "name"],
["css=input:nth-child(7)", "css:finder"],
["xpath=//input[@name='email']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[2]", "xpath:idRelative"],
["xpath=//input[2]", "xpath:position"]
],
"value": "pokusaj123@gmail.com"
}, {
"id": "7708c3e3-3f92-4d9d-ace5-5ceff41de0f6",
"comment": "",
"command": "type",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=input:nth-child(10)", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[3]", "xpath:idRelative"],
["xpath=//input[3]", "xpath:position"]
],
"value": "12345678A"
}, {
"id": "8791951d-0a3f-4e1e-a361-be6b10d2fc1d",
"comment": "",
"command": "click",
"target": "css=.login-button",
"targets": [
["css=.login-button", "css:finder"],
["xpath=//input[@value='Sign up']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[4]", "xpath:idRelative"],
["xpath=//input[4]", "xpath:position"]
],
"value": ""
}]
}- Prijava s neispravnim podacima
- Ispitni slučaj:
- Ulazni podaci: korisničko ime:pokusaj124, lozinka:12345678B
- Očekivani rezultat: Neuspješna prijava u sustav
- Dobiveni rezultat: Ispitivanje uspješno
-
U bazi podataka ne postoji korisnik s korisničkim imenom pokusaj123 i lozinkom: 1234567B. Sustav odgovara netočna lozinka ili korisničko ime, te nas ne prijavljuje u sustav. Test je uspješan.
-
Log Selenium:

-
Kod dobivenog izlaza:
{
"id": "f59f920e-9167-464b-a694-1a3bcd381691",
"name": "1.2",
"commands": [{
"id": "2d6da602-8755-4c2d-ad7a-cf095d85d444",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "665eda99-ec12-440b-84b2-bfcb4ac2ccd6",
"comment": "",
"command": "setWindowSize",
"target": "733x853",
"targets": [],
"value": ""
}, {
"id": "2f1957c6-e07c-47da-8959-a48f808df625",
"comment": "",
"command": "click",
"target": "linkText=Log in",
"targets": [
["linkText=Sign up", "linkText"],
["css=.header-button:nth-child(1)", "css:finder"],
["xpath=//a[contains(text(),'Sign up')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/signup')]", "xpath:href"],
["xpath=//div/div/div/a", "xpath:position"],
["xpath=//a[contains(.,'Sign up')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "45fb260c-5954-4fb6-91fa-ecd23fbf82f8",
"comment": "",
"command": "click",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "84acf425-cdc3-4f04-bd4f-962e5c8eebf4",
"comment": "",
"command": "type",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": "pokusaj124"
}, {
"id": "2a2aa8e9-7c51-47b5-904c-c556b21d3109",
"comment": "",
"command": "type",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=input:nth-child(10)", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[3]", "xpath:idRelative"],
["xpath=//input[3]", "xpath:position"]
],
"value": "12345678B"
}, {
"id": "8f9cde47-3972-4c2b-a0e0-95d0a712d55b",
"comment": "",
"command": "click",
"target": "css=.login-button",
"targets": [
["css=.login-button", "css:finder"],
["xpath=//input[@value='Sign up']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[4]", "xpath:idRelative"],
["xpath=//input[4]", "xpath:position"]
],
"value": ""
}, {
"id": "7b0184b2-fb38-43cd-b51b-327c91faa885",
"comment": "",
"command": "assertText",
"target": "id=invalid-login-text",
"targets": [
["id=invalid-login-text", "id"],
["css=#invalid-login-text", "css:finder"],
["xpath=//h5[@id='invalid-login-text']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/h5", "xpath:idRelative"],
["xpath=//h5", "xpath:position"],
["xpath=//h5[contains(.,'Invalid username or password.')]", "xpath:innerText"]
],
"value": "Invalid username or password."
}]
},- Ulazak na korisnikov profil nakon prijave/registracije
- Ispitni slučaj:
- Ulazni podaci: pritisak tipke za prikaz profila
- Očekivani rezultat: korisnik uspješno ulazi u svoj profil na web aplikaciji
- Dobiveni rezultat: Ispitivanje uspješno
- Nakon prijave/registracije korisnik može doći do svog profila pritiskom gumba "Profil". Test je uspješan.
- Log Seleium:
- Kod dobivenog izlaza:
{
"id": "420bb4c0-5fa1-41b3-9f83-0fd34a4baa36",
"name": "1.3",
"commands": [{
"id": "370b986f-dac9-4e26-b77b-36c5647290bc",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "54f541b6-aee1-459f-931e-3f456fa7f43d",
"comment": "",
"command": "setWindowSize",
"target": "732x852",
"targets": [],
"value": ""
}, {
"id": "641b9c03-0d32-403d-a2df-4d5304f4fb0f",
"comment": "",
"command": "click",
"target": "linkText=Marko Subašić",
"targets": [
["linkText=Marko Subašić", "linkText"],
["css=.header-button:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'Marko Subašić')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/mypage')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'Marko Subašić')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "6753667f-11be-491f-9015-c023e74681e2",
"comment": "",
"command": "assertText",
"target": "linkText=Ponude",
"targets": [
["linkText=Ponude", "linkText"],
["css=.mypage-sidebar-unclicked-link:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'Ponude')]", "xpath:link"],
["xpath=//div[@id='root']/div[2]/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/ponude')]", "xpath:href"],
["xpath=//div[2]/div/a[2]", "xpath:position"],
["xpath=//a[contains(.,'Ponude')]", "xpath:innerText"]
],
"value": "Ponude"
}, {
"id": "36bdc996-ad5b-469c-ac6b-381bd0eba004",
"comment": "",
"command": "assertText",
"target": "linkText=Popis želja",
"targets": [
["linkText=Popis želja", "linkText"],
["css=.mypage-sidebar-unclicked-link:nth-child(3)", "css:finder"],
["xpath=//a[contains(text(),'Popis želja')]", "xpath:link"],
["xpath=//div[@id='root']/div[2]/div/a[3]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/popis-zelja')]", "xpath:href"],
["xpath=//a[3]", "xpath:position"],
["xpath=//a[contains(.,'Popis želja')]", "xpath:innerText"]
],
"value": "Popis želja"
}, {
"id": "627dfd12-8c7e-4497-a410-0e08b2b50836",
"comment": "",
"command": "assertText",
"target": "linkText=Postavke",
"targets": [
["linkText=Postavke", "linkText"],
["css=.mypage-sidebar-unclicked-link:nth-child(4)", "css:finder"],
["xpath=//a[contains(text(),'Postavke')]", "xpath:link"],
["xpath=//div[@id='root']/div[2]/div/a[4]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/postavke')]", "xpath:href"],
["xpath=//a[4]", "xpath:position"],
["xpath=//a[contains(.,'Postavke')]", "xpath:innerText"]
],
"value": "Postavke"
}]
},- Dodavanje ploča
- Ispitni slučaj:
- Ulazni podaci: pritisunt gumb za dodavanje ploča, te pritisnuti gumbi za ispravnu kategorizaciju ploče. Opis ploče: izvođač=ploča1, naziv=probna, year=2000, edition=drugi edition, žanr=ROCK, stanje ploče=VG+, stanje omota=MINT, opis=Opasno dobra ploča, img=URL/slike
- Očekivani rezultat: Dodatak ploče u korisnikov profil
- Dobiveni rezultat: Prolaz ispitivanja
- Korisnik nakon prijave/registracije može u profilu dodati ploču pritiskom gumba "Dodaj ploču". Nakon pritiska tipke sustav traži detaljnu kategorizaciju ploče, te dodaje ploču u bazu podataka korisnika. Test je uspješan.
- Log Selenium:
- Kod dobivenog izlaza:
{
"id": "7b6c18ca-0cbe-488a-bdce-ac1e7790eac1",
"name": "1.4",
"commands": [{
"id": "9e9a73e9-ffdb-41be-bf75-b0dba0831c03",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "187b5f18-93b0-4793-8d15-7f2dea1ed797",
"comment": "",
"command": "setWindowSize",
"target": "732x852",
"targets": [],
"value": ""
}, {
"id": "32587923-65b6-4378-bf63-6c9c3e604336",
"comment": "",
"command": "click",
"target": "linkText=Marko Subašić",
"targets": [
["linkText=Marko Subašić", "linkText"],
["css=.header-button:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'Marko Subašić')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/mypage')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'Marko Subašić')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "358c9603-e33e-4b61-84b9-830d43020f86",
"comment": "",
"command": "click",
"target": "css=.mypage-top-content-button",
"targets": [
["css=.mypage-top-content-button", "css:finder"],
["xpath=//div[@id='root']/div[2]/div[2]/div/div/button", "xpath:idRelative"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Dodaj Ploču')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "72e9860c-a39c-4db5-8f2f-89562649efe7",
"comment": "",
"command": "click",
"target": "name=artist",
"targets": [
["name=artist", "name"],
["css=.inputGroup:nth-child(1) > input", "css:finder"],
["xpath=//input[@id='']", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div/input", "xpath:idRelative"],
["xpath=//form/div/input", "xpath:position"]
],
"value": ""
}, {
"id": "43a63798-2607-4ffd-9105-8d2c84db52f8",
"comment": "",
"command": "type",
"target": "name=artist",
"targets": [
["name=artist", "name"],
["css=.inputGroup:nth-child(1) > input", "css:finder"],
["xpath=//input[@id='']", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div/input", "xpath:idRelative"],
["xpath=//form/div/input", "xpath:position"]
],
"value": "ploča1"
}, {
"id": "6f04cb1a-2ab2-4343-a1c4-210beae09be7",
"comment": "",
"command": "type",
"target": "name=album",
"targets": [
["name=album", "name"],
["css=.inputGroup:nth-child(2) > input", "css:finder"],
["xpath=(//input[@id=''])[2]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[2]/input", "xpath:idRelative"],
["xpath=//div[2]/input", "xpath:position"]
],
"value": "probna"
}, {
"id": "7563db1b-5218-4bd9-841b-79b36b2b9f89",
"comment": "",
"command": "type",
"target": "name=year",
"targets": [
["name=year", "name"],
["css=.inputGroup:nth-child(3) > input", "css:finder"],
["xpath=(//input[@id=''])[3]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[3]/input", "xpath:idRelative"],
["xpath=//div[3]/input", "xpath:position"]
],
"value": "2000"
}, {
"id": "3e9548b7-e432-4272-95f2-0dacb3cad3c5",
"comment": "",
"command": "type",
"target": "name=edition",
"targets": [
["name=edition", "name"],
["css=.inputGroup:nth-child(4) > input", "css:finder"],
["xpath=(//input[@id=''])[4]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[4]/input", "xpath:idRelative"],
["xpath=//div[4]/input", "xpath:position"]
],
"value": "drugi edition"
}, {
"id": "3b994ff1-42d9-4986-9742-482b587a29dd",
"comment": "",
"command": "click",
"target": "css=.wide .filter-category-unclicked:nth-child(3)",
"targets": [
["css=.wide .filter-category-unclicked:nth-child(3)", "css:finder"],
["xpath=//div[@id='new-item-form']/form/div[5]/div/div/div[3]", "xpath:idRelative"],
["xpath=//div/div[3]", "xpath:position"]
],
"value": ""
}, {
"id": "11eb7a46-3570-4c53-b274-1814455f2097",
"comment": "",
"command": "click",
"target": "css=.inputGroup:nth-child(6) .filter-category-unclicked:nth-child(2)",
"targets": [
["css=.inputGroup:nth-child(6) .filter-category-unclicked:nth-child(2)", "css:finder"],
["xpath=//div[@id='new-item-form']/form/div[6]/div/div/div[2]", "xpath:idRelative"],
["xpath=//div[6]/div/div/div[2]", "xpath:position"]
],
"value": ""
}, {
"id": "d4c67d4c-3974-4e54-a72e-eeebd2270c27",
"comment": "",
"command": "click",
"target": "css=.inputGroup:nth-child(7) .filter-category-unclicked:nth-child(2)",
"targets": [
["css=.inputGroup:nth-child(7) .filter-category-unclicked:nth-child(2)", "css:finder"],
["xpath=//div[@id='new-item-form']/form/div[7]/div/div/div[2]", "xpath:idRelative"],
["xpath=//div[7]/div/div/div[2]", "xpath:position"]
],
"value": ""
}, {
"id": "55d2838e-5aa0-403a-9598-91d883b7b780",
"comment": "",
"command": "click",
"target": "name=description",
"targets": [
["name=description", "name"],
["css=.inputGroup:nth-child(8) > input", "css:finder"],
["xpath=(//input[@id=''])[5]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[8]/input", "xpath:idRelative"],
["xpath=//div[8]/input", "xpath:position"]
],
"value": ""
}, {
"id": "397efa8f-0e67-442c-b29f-f4edd6e9d76e",
"comment": "",
"command": "type",
"target": "name=description",
"targets": [
["name=description", "name"],
["css=.inputGroup:nth-child(8) > input", "css:finder"],
["xpath=(//input[@id=''])[5]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[8]/input", "xpath:idRelative"],
["xpath=//div[8]/input", "xpath:position"]
],
"value": "opasno dobra ploca"
}, {
"id": "adcb3354-aed0-4488-ad8a-93fa0c5b4a34",
"comment": "",
"command": "click",
"target": "id=inputImage",
"targets": [
["id=inputImage", "id"],
["name=image", "name"],
["css=#inputImage", "css:finder"],
["xpath=//input[@id='inputImage']", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[9]/input", "xpath:idRelative"],
["xpath=//div[9]/input", "xpath:position"]
],
"value": ""
}, {
"id": "5c33a285-0e47-477e-a7de-7db22c999504",
"comment": "",
"command": "click",
"target": "css=.wide:nth-child(10)",
"targets": [
["css=.wide:nth-child(10)", "css:finder"],
["xpath=//input[@value='Dodaj']", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/input", "xpath:idRelative"],
["xpath=//form/input", "xpath:position"]
],
"value": ""
}, {
"id": "bfdc97f3-3659-48d0-9c64-72ad94c46c8d",
"comment": "",
"command": "click",
"target": "css=.wide:nth-child(10)",
"targets": [
["css=.wide:nth-child(10)", "css:finder"],
["xpath=//input[@value='Dodaj']", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/input", "xpath:idRelative"],
["xpath=//form/input", "xpath:position"]
],
"value": ""
}, {
"id": "44b88e14-ef17-4ab1-bd89-8d0884a62e46",
"comment": "",
"command": "assertText",
"target": "css=.card:nth-child(1) > .KVPair:nth-child(2) > .value",
"targets": [
["css=.card:nth-child(1) > .KVPair:nth-child(2) > .value", "css:finder"],
["xpath=//div[@id='root']/div[2]/div[2]/div/div[3]/div/div[2]/div[2]", "xpath:idRelative"],
["xpath=//div[3]/div/div[2]/div[2]", "xpath:position"]
],
"value": "ploča1"
}]
},- Poslan zahtjev za zamjenu željene ploče
- Ispitni slučaj:
- Ulazni podaci: Pritisnut gumb za zamjenu s željenim korisnikom, pritisnut gumb za željenu ploču, te pritisnut gumb "U redu"
- Očekivani rezultat: Uspješno poslan zahtjev za zamjenu ploče između dva korisnika
- Dobiveni rezultat: Prolaz ispitivanja
- Nakon odabira željene ploče i pritiska tipke za zamjenu korisniku ,čija se ploča traži za zamjenu, dobiva mail o želji zamjene i razmjena se upisuje u bazu podataka. Test uspješan.
- Log Selenium:
- Kod dobivenog izlaza:
{
"id": "1eaef0a1-fb0e-4fdd-abc6-80a3d1d349a7",
"name": "1.5",
"commands": [{
"id": "94fae517-7ef1-4fe0-96ea-7c5596deb9c8",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "43fc2c97-7332-4a66-aba0-bad666f1af8c",
"comment": "",
"command": "setWindowSize",
"target": "737x852",
"targets": [],
"value": ""
}, {
"id": "af62ca5a-a21c-4dbc-8da7-a54246f893ee",
"comment": "",
"command": "click",
"target": "css=.card:nth-child(1) > .change-vinyl-button",
"targets": [
["css=.card:nth-child(1) > .change-vinyl-button", "css:finder"],
["xpath=//div[@id='root']/div[2]/div[2]/div/button", "xpath:idRelative"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Ponudi zamjenu')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "ebccdc15-41b4-46b2-b394-4bf07fb7b691",
"comment": "",
"command": "click",
"target": "css=.card:nth-child(1) > #overlay > #card-exchange-view .card:nth-child(1) > .KVPair:nth-child(10)",
"targets": [
["css=.card:nth-child(1) > #overlay > #card-exchange-view .card:nth-child(1) > .KVPair:nth-child(10)", "css:finder"],
["xpath=//div[@id='card-exchange-cards']/div/div[9]", "xpath:idRelative"],
["xpath=//div[12]/div/div/div/div[9]", "xpath:position"]
],
"value": ""
}, {
"id": "bfc3b5a1-4552-49d7-82a4-173960dc0d58",
"comment": "",
"command": "click",
"target": "css=.card-list > .card:nth-child(1) > #overlay > #card-exchange-view > #send-exchange-button",
"targets": [
["css=.card-list > .card:nth-child(1) > #overlay > #card-exchange-view > #send-exchange-button", "css:finder"],
["xpath=(//button[@id='send-exchange-button'])[4]", "xpath:attributes"],
["xpath=(//div[@id='card-exchange-view']/button)[4]", "xpath:idRelative"],
["xpath=//div[12]/div/button", "xpath:position"]
],
"value": ""
}]
},- Filtriranje uz željene parametre
- Ispitni slučaj:
- Ulazni podaci: Žanr: Classical, VG+, NM, godina <1983, 2000>
- Očekivani rezultat: Prikaz ploča uz zadane parametre filtriranja
- Dobiveni rezultat: Prolaz ispitivanja
- Pritiskom gumba za svaki željeni parametar, te odabirom i pritiskom gumba filtriraj prikazuju se ploče samo za željene parametre. Test uspješan.
- Log Selenium:
- Kod dobivenog izlaza:
{
"id": "d9551af2-ad19-415e-b114-eaf87635ae0c",
"name": "1.6",
"commands": [{
"id": "afc4d67c-bf6b-4f5c-9562-edca5ad88d1b",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "41a419ad-bed8-4596-a2dd-5656e30c8691",
"comment": "",
"command": "setWindowSize",
"target": "738x852",
"targets": [],
"value": ""
}, {
"id": "001ab974-b335-4af0-a043-d5decb775ea0",
"comment": "",
"command": "click",
"target": "css=.filter-category:nth-child(1) .filter-category-unclicked:nth-child(5)",
"targets": [
["css=.filter-category:nth-child(1) .filter-category-unclicked:nth-child(5)", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div/div[2]/div[5]", "xpath:idRelative"],
["xpath=//div[5]", "xpath:position"]
],
"value": ""
}, {
"id": "50c45aa1-955d-4fb2-9428-7a7c3ac7f2cd",
"comment": "",
"command": "click",
"target": "css=.filter-category:nth-child(2) .filter-category-unclicked:nth-child(4)",
"targets": [
["css=.filter-category:nth-child(2) .filter-category-unclicked:nth-child(4)", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[2]/div[2]/div[4]", "xpath:idRelative"],
["xpath=//div[2]/div[2]/div[4]", "xpath:position"]
],
"value": ""
}, {
"id": "7eb5b861-82cc-4435-b41b-6af8932777e2",
"comment": "",
"command": "click",
"target": "css=.filter-category:nth-child(3) .filter-category-unclicked:nth-child(3)",
"targets": [
["css=.filter-category:nth-child(3) .filter-category-unclicked:nth-child(3)", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[3]/div[2]/div[3]", "xpath:idRelative"],
["xpath=//div[3]/div[2]/div[3]", "xpath:position"]
],
"value": ""
}, {
"id": "bc0edb9c-9ada-49b2-ae22-6b78507c336c",
"comment": "",
"command": "mouseDownAt",
"target": "css=.thumb-left",
"targets": [
["css=.thumb-left", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[4]/div[2]/div/div[2]", "xpath:idRelative"],
["xpath=//div[4]/div[2]/div/div[2]", "xpath:position"]
],
"value": "-372.125,0.7265625"
}, {
"id": "75b7f60c-f1f9-4ae0-9c4e-c5274efb10de",
"comment": "",
"command": "mouseMoveAt",
"target": "css=.thumb-left",
"targets": [
["css=.thumb-left", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[4]/div[2]/div/div[2]", "xpath:idRelative"],
["xpath=//div[4]/div[2]/div/div[2]", "xpath:position"]
],
"value": "-0.125,-4.2734375"
}, {
"id": "e8ac59d2-c073-40ba-ac77-092e10e067d1",
"comment": "",
"command": "mouseUpAt",
"target": "css=.thumb-left",
"targets": [
["css=.thumb-left", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[4]/div[2]/div/div[2]", "xpath:idRelative"],
["xpath=//div[4]/div[2]/div/div[2]", "xpath:position"]
],
"value": "-0.125,-4.2734375"
}, {
"id": "c825a48e-3fbc-4d4e-b231-2ca0cb92e4db",
"comment": "",
"command": "click",
"target": "css=.multi-range-slider",
"targets": [
["css=.multi-range-slider", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[4]/div[2]", "xpath:idRelative"],
["xpath=//div[4]/div[2]", "xpath:position"]
],
"value": ""
}, {
"id": "cba6eafa-19b0-42a9-857f-0ef5f044799a",
"comment": "",
"command": "mouseDownAt",
"target": "css=.thumb-right",
"targets": [
["css=.thumb-right", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[4]/div[2]/div/div[4]", "xpath:idRelative"],
["xpath=//div[4]/div[2]/div/div[4]", "xpath:position"]
],
"value": "137,0.7265625"
}, {
"id": "c53ef497-d7c9-4ac9-b0e6-85a395cd5836",
"comment": "",
"command": "mouseMoveAt",
"target": "css=.bar-inner-right",
"targets": [
["css=.bar-inner-right", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[4]/div[2]/div/div[3]/div[2]", "xpath:idRelative"],
["xpath=//div[2]/div/div[3]/div[2]", "xpath:position"]
],
"value": "46.9375,5.7265625"
}, {
"id": "7ee8e922-18bc-4fa1-87a4-1d71a0523eff",
"comment": "",
"command": "mouseUpAt",
"target": "css=.bar-inner-right",
"targets": [
["css=.bar-inner-right", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[4]/div[2]/div/div[3]/div[2]", "xpath:idRelative"],
["xpath=//div[2]/div/div[3]/div[2]", "xpath:position"]
],
"value": "46.9375,5.7265625"
}, {
"id": "e883afa1-0aff-42d1-9561-62d3c22910cf",
"comment": "",
"command": "click",
"target": "css=.thumb-right",
"targets": [
["css=.thumb-right", "css:finder"],
["xpath=//div[@id='root']/div[2]/div/div[2]/div[4]/div[2]/div/div[4]", "xpath:idRelative"],
["xpath=//div[4]/div[2]/div/div[4]", "xpath:position"]
],
"value": ""
}]
},- Ulazi:
- podaci koji se unose u registraciju: korisničko ime: pokusaj1, email: pokusaj1@gmail.com, lozinka:12345678A
- pritisak gumba "Odjava" za odjavu iz sustava
- podaci koji se unose u prijavu: koriničko ime: pokusaj1, lozinka:12345678A
- Koraci ispitivanja:
- pokretanje web aplikacije
- Pritisak gumba za registraciju
- Unošenje podataka u zasebna polja
- Verificirati očekivane rezultate
- Pritisak gumba za odjavu
- Pritisak gumba za prijavu
- Unošenje podataka u zasebna polja
- Pritisak gumba za prijavu
-
Očekivani izlaz: Korisnik nakon registracije preusmjeren je na "Home Page" web aplikacije, te nakon pritiska gumba odjava vraćen je na početnu stranicu. Zatim nakon prijave korisnik se prijavljuje ja račun nedugo napravljen.
-
Dobiveni izlaz:
5.Izlazni kod:
{
"id": "a96944f2-db42-4e1f-9a4c-60e8e9b0165a",
"name": "2.1",
"commands": [{
"id": "a6569415-f7f2-4b28-8a23-a6936749050a",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "174724a9-7dd0-44e4-a32d-c8860906a79a",
"comment": "",
"command": "setWindowSize",
"target": "732x852",
"targets": [],
"value": ""
}, {
"id": "192f329d-4c4a-4845-aa0a-ed6c7422155b",
"comment": "",
"command": "click",
"target": "linkText=Sign up",
"targets": [
["linkText=Sign up", "linkText"],
["css=.header-button:nth-child(1)", "css:finder"],
["xpath=//a[contains(text(),'Sign up')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/signup')]", "xpath:href"],
["xpath=//div/div/div/a", "xpath:position"],
["xpath=//a[contains(.,'Sign up')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "6df28590-af52-467d-9b43-187de0a5a363",
"comment": "",
"command": "mouseOver",
"target": "linkText=Sign up",
"targets": [
["linkText=Sign up", "linkText"],
["css=.header-button:nth-child(1)", "css:finder"],
["xpath=//a[contains(text(),'Sign up')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/signup')]", "xpath:href"],
["xpath=//div/div/div/a", "xpath:position"],
["xpath=//a[contains(.,'Sign up')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "1e2d328d-90b9-4f1a-a18d-8c0d867b3fb5",
"comment": "",
"command": "mouseOut",
"target": "linkText=Sign up",
"targets": [
["linkText=Sign up", "linkText"],
["css=.header-button:nth-child(1)", "css:finder"],
["xpath=//a[contains(text(),'Sign up')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a", "xpath:idRelative"],
["xpath=//a[contains(@href, '/signup')]", "xpath:href"],
["xpath=//div/div/div/a", "xpath:position"],
["xpath=//a[contains(.,'Sign up')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "3c76fc2b-df31-4d6d-a527-6d795eb5490a",
"comment": "",
"command": "click",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "df25aa1d-c588-4825-9603-22e00c175abd",
"comment": "",
"command": "type",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": "pokusaj1"
}, {
"id": "1466a3bb-e286-4ae4-ae71-abed21368a8c",
"comment": "",
"command": "type",
"target": "name=email",
"targets": [
["name=email", "name"],
["css=input:nth-child(7)", "css:finder"],
["xpath=//input[@name='email']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[2]", "xpath:idRelative"],
["xpath=//input[2]", "xpath:position"]
],
"value": "pokusaj1@gmail.com"
}, {
"id": "d5ff120d-6844-467c-adf4-f0955a1c75ad",
"comment": "",
"command": "type",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=input:nth-child(10)", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[3]", "xpath:idRelative"],
["xpath=//input[3]", "xpath:position"]
],
"value": "12345678A"
}, {
"id": "81b41e1e-13b4-4f71-ae3e-54adf20607a0",
"comment": "",
"command": "sendKeys",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=input:nth-child(10)", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[3]", "xpath:idRelative"],
["xpath=//input[3]", "xpath:position"]
],
"value": "${KEY_ENTER}"
}, {
"id": "294815e2-d412-46e5-b7d1-6c3314df74ab",
"comment": "",
"command": "click",
"target": "linkText=Log out",
"targets": [
["linkText=Log out", "linkText"],
["css=.logout-button", "css:finder"],
["xpath=//a[contains(text(),'Log out')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a", "xpath:idRelative"],
["xpath=(//a[contains(@href, '/')])[2]", "xpath:href"],
["xpath=//div/div/div/a", "xpath:position"],
["xpath=//a[contains(.,'Log out')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "25c51cb4-0d01-4ae2-897e-b431892ebfa3",
"comment": "",
"command": "click",
"target": "linkText=Log in",
"targets": [
["linkText=Log in", "linkText"],
["css=.header-button:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'Log in')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/login')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'Log in')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "b1e4042c-410d-45e0-8a12-d4b183729d94",
"comment": "",
"command": "click",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "e309248f-3e08-4751-a0a1-926c728793ce",
"comment": "",
"command": "type",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": "pokusaj1"
}, {
"id": "ef2a4de4-6d39-4ca1-abf9-164a0378f00f",
"comment": "",
"command": "type",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=input:nth-child(5)", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[2]", "xpath:idRelative"],
["xpath=//input[2]", "xpath:position"]
],
"value": "12345678A"
}, {
"id": "7f1a2bf6-4c38-4bdf-b5a5-d20a84369ec4",
"comment": "",
"command": "click",
"target": "css=.login-button",
"targets": [
["css=.login-button", "css:finder"],
["xpath=//input[@value='Log in']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[3]", "xpath:idRelative"],
["xpath=//input[3]", "xpath:position"]
],
"value": ""
}]
}, - Ulazi:
- pritisak željene ploče za zamjenu, te pritisak gumba za slanje zahtjeva razmjene.
- drugi korisnik se prijavljuje na web aplikaciju te u profilu pritišće tipku za odbijanje zamjene.
- Koraci ispitivanja:
- Pokretanje web aplikacije prvog korisnika
- Prijava prvog korisnika
- Odabir željene ploče za zamjenu
- Slanje zahtjeva za zamjenu ploče
- Verificirati očekivane rezultate
- Pokretanje web aplikacije drugog korisnika
- Prijava drugog korisnika
- Ulazak u profil
- Odbijanje ponude
-
Očekivani izlaz: Zahtjev za zamjenu će biti poslan na korisnikov mail, te će zahtjev za zamjenu biti vidljiv drugom korisniku.
-
Dobiveni izlaz:
5.Izlazni kod:
{
"id": "965fb9e6-7e4e-47dd-a198-bf0f1039d96c",
"name": "2.2",
"commands": [{
"id": "2b09f2c4-ff93-4108-b770-05ea18741c74",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "e4f78d92-e035-4cc8-af4d-8919d3214816",
"comment": "",
"command": "setWindowSize",
"target": "1454x866",
"targets": [],
"value": ""
}, {
"id": "bafe0e5a-be03-4e4c-8aed-42f229287be6",
"comment": "",
"command": "click",
"target": "css=.card:nth-child(2) > .change-vinyl-button",
"targets": [
["css=.card:nth-child(2) > .change-vinyl-button", "css:finder"],
["xpath=//div[@id='root']/div[2]/div[2]/div[2]/button", "xpath:idRelative"],
["xpath=//div[2]/button", "xpath:position"]
],
"value": ""
}, {
"id": "f1bff386-b515-4eb2-946c-d1cf45f64f16",
"comment": "",
"command": "click",
"target": "css=.card:nth-child(1) > #overlay > #card-exchange-view > #card-exchange-cards .KVPair:nth-child(7)",
"targets": [
["css=.card:nth-child(1) > #overlay > #card-exchange-view > #card-exchange-cards .KVPair:nth-child(7)", "css:finder"],
["xpath=//div[@id='card-exchange-cards']/div/div[6]", "xpath:idRelative"],
["xpath=//div[12]/div/div/div/div[6]", "xpath:position"]
],
"value": ""
}, {
"id": "abe7c493-fb18-466f-82d5-d781afbb965c",
"comment": "",
"command": "click",
"target": "css=.card-list > .card:nth-child(1) > #overlay > #card-exchange-view > #send-exchange-button",
"targets": [
["css=.card-list > .card:nth-child(1) > #overlay > #card-exchange-view > #send-exchange-button", "css:finder"],
["xpath=(//button[@id='send-exchange-button'])[2]", "xpath:attributes"],
["xpath=(//div[@id='card-exchange-view']/button)[2]", "xpath:idRelative"],
["xpath=//div[12]/div/button", "xpath:position"]
],
"value": ""
}, {
"id": "cfcd25af-2a25-4c82-9787-3b1f7439d0d1",
"comment": "",
"command": "click",
"target": "linkText=Log out",
"targets": [
["linkText=Log out", "linkText"],
["css=.logout-button", "css:finder"],
["xpath=//a[contains(text(),'Log out')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a", "xpath:idRelative"],
["xpath=(//a[contains(@href, '/')])[2]", "xpath:href"],
["xpath=//div/div/div/a", "xpath:position"],
["xpath=//a[contains(.,'Log out')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "efa6374b-182a-4f4f-82af-2292382e6383",
"comment": "",
"command": "click",
"target": "linkText=Log in",
"targets": [
["linkText=Log in", "linkText"],
["css=.header-button:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'Log in')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/login')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'Log in')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "24d31e3f-ecd4-440c-9ffe-032d36d37f25",
"comment": "",
"command": "selectFrame",
"target": "index=0",
"targets": [
["index=0"]
],
"value": ""
}, {
"id": "b52e14b3-7a5b-4ae6-9c13-e2157c039dc4",
"comment": "",
"command": "click",
"target": "css=.ssJRIf",
"targets": [
["css=.ssJRIf", "css:finder"],
["xpath=//div[@id='container']/div/div[2]/div/div", "xpath:idRelative"],
["xpath=//div[2]/div/div", "xpath:position"]
],
"value": "",
"opensWindow": true,
"windowHandleName": "win3008",
"windowTimeout": 2000
}, {
"id": "83087822-963e-471f-87d4-c7f4711a5781",
"comment": "",
"command": "storeWindowHandle",
"target": "root",
"targets": [],
"value": ""
}, {
"id": "cf537f31-8727-43ee-9a4f-adfe0d3baf5f",
"comment": "",
"command": "selectWindow",
"target": "handle=${win3008}",
"targets": [],
"value": ""
}, {
"id": "f1d385f7-8239-48f9-bed4-4277f6583e85",
"comment": "",
"command": "click",
"target": "css=.g3d2Jf",
"targets": [
["css=.g3d2Jf", "css:finder"],
["xpath=//body[@id='yDmH0d']/div/div/div[2]/div/div/div", "xpath:idRelative"],
["xpath=//div[2]/div/div/div", "xpath:position"]
],
"value": ""
}, {
"id": "4de3088c-709a-488d-a4e3-d5c8c57e91c8",
"comment": "",
"command": "click",
"target": "css=.aZvCDf:nth-child(1) .pGzURd",
"targets": [
["css=.aZvCDf:nth-child(1) .pGzURd", "css:finder"],
["xpath=//body[@id='yDmH0d']/div/div/div[2]/div/div/div[2]/div/div/div/form/span/section/div/div/div/div/ul/li/div/div/div/div[2]/div", "xpath:idRelative"],
["xpath=//li/div/div/div/div[2]/div", "xpath:position"]
],
"value": ""
}, {
"id": "5b444bfd-f999-4712-be6b-517ee8e8eece",
"comment": "",
"command": "close",
"target": "",
"targets": [],
"value": ""
}, {
"id": "c573898c-12f7-4722-bee0-f6a3ad2c2878",
"comment": "",
"command": "selectWindow",
"target": "handle=${root}",
"targets": [],
"value": ""
}, {
"id": "c8ce5899-e338-42fe-a49a-24232f45c345",
"comment": "",
"command": "click",
"target": "linkText=Marko Subašić",
"targets": [
["linkText=Marko Subašić", "linkText"],
["css=.header-button:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'Marko Subašić')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/mypage')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'Marko Subašić')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "d237ad1b-60e3-4fdc-9ef8-9997d161a2d8",
"comment": "",
"command": "mouseOver",
"target": "linkText=Ponude",
"targets": [
["linkText=Ponude", "linkText"],
["css=.mypage-sidebar-unclicked-link:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'Ponude')]", "xpath:link"],
["xpath=//div[@id='root']/div[2]/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/ponude')]", "xpath:href"],
["xpath=//div[2]/div/a[2]", "xpath:position"],
["xpath=//a[contains(.,'Ponude')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "31d7a6e2-4e56-4e17-870b-655e3a5a55e6",
"comment": "",
"command": "click",
"target": "linkText=Ponude",
"targets": [
["linkText=Ponude", "linkText"],
["css=.mypage-sidebar-unclicked-link:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'Ponude')]", "xpath:link"],
["xpath=//div[@id='root']/div[2]/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/ponude')]", "xpath:href"],
["xpath=//div[2]/div/a[2]", "xpath:position"],
["xpath=//a[contains(.,'Ponude')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "5179e4ce-db53-46b9-8444-870e685a6545",
"comment": "",
"command": "mouseOut",
"target": "linkText=Ponude",
"targets": [
["linkText=Ponude", "linkText"],
["css=.mypage-sidebar-clicked-link", "css:finder"],
["xpath=//a[contains(text(),'Ponude')]", "xpath:link"],
["xpath=//div[@id='root']/div[2]/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/ponude')]", "xpath:href"],
["xpath=//div[2]/div/a[2]", "xpath:position"],
["xpath=//a[contains(.,'Ponude')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "9da665e7-c7da-4075-9d97-d92a9495bcd5",
"comment": "",
"command": "runScript",
"target": "window.scrollTo(0,247)",
"targets": [],
"value": ""
}, {
"id": "17f52cf9-f625-4a57-a844-507f654d0377",
"comment": "",
"command": "click",
"target": "css=.cancel-button",
"targets": [
["css=.cancel-button", "css:finder"],
["xpath=//div[@id='offer-view']/div/div[5]/button[3]", "xpath:idRelative"],
["xpath=//button[3]", "xpath:position"],
["xpath=//button[contains(.,'Odbaci ponudu')]", "xpath:innerText"]
],
"value": ""
}]
},- Ulazi:
- podaci koji se unose tokom registracije: korisničko ime:pokusaj007, email:pokusaj007@gmail.com, lozinka:12345678A
- pritisak gumba za profil
- pritisak gumba za dodavanje ploče
- unos potrebnih parametara ploče: ROCK...
- Koraci ispitivanja:
- pokretanje web aplikacije
- registracija u sustav
- Verificirati očekivane rezultate
- ulaženje na korisničkov profil
- dodavanje ploče uz zadavanje parametara
-
Očekivani rezultat: Korisnik će se registrirati u sustav, te ulaskom na profil dodati novu ploču
-
Dobiveni rezultat:
5.Izlazni kod:
{
"id": "75d78efc-244e-4982-a42e-bc6c4cb13fba",
"name": "2.3",
"commands": [{
"id": "eb1cfcf4-9933-4869-bd22-33c2d34d1713",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "3eaaaaa0-79c0-4c9d-ba81-82b939f3fd26",
"comment": "",
"command": "setWindowSize",
"target": "732x852",
"targets": [],
"value": ""
}, {
"id": "9f0c9616-5213-406d-9024-6253aaa6fa99",
"comment": "",
"command": "doubleClick",
"target": "linkText=Sign up",
"targets": [],
"value": ""
}, {
"id": "754e82e8-1f3a-4550-a04e-50e808ae0240",
"comment": "",
"command": "click",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "6c3961da-2fd9-49b5-b25d-a588817c56ad",
"comment": "",
"command": "type",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": "pokusaj007"
}, {
"id": "5d76ef56-387c-49a3-b5a3-de81ec37e139",
"comment": "",
"command": "type",
"target": "name=email",
"targets": [
["name=email", "name"],
["css=input:nth-child(7)", "css:finder"],
["xpath=//input[@name='email']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[2]", "xpath:idRelative"],
["xpath=//input[2]", "xpath:position"]
],
"value": "pokusaj007@gmail.com"
}, {
"id": "1e9ac923-738a-44d8-814b-a47c734bd3cf",
"comment": "",
"command": "type",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=input:nth-child(10)", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[3]", "xpath:idRelative"],
["xpath=//input[3]", "xpath:position"]
],
"value": "12345678A"
}, {
"id": "e92ba929-323f-42ab-81ad-44b35d36f9d6",
"comment": "",
"command": "click",
"target": "css=.login-button",
"targets": [
["css=.login-button", "css:finder"],
["xpath=//input[@value='Sign up']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[4]", "xpath:idRelative"],
["xpath=//input[4]", "xpath:position"]
],
"value": ""
}, {
"id": "82fe0fec-a205-4ef0-8996-8e5fd95f783c",
"comment": "",
"command": "click",
"target": "linkText=pokusaj007",
"targets": [
["linkText=pokusaj008", "linkText"],
["css=.header-button:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'pokusaj008')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/mypage')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'pokusaj008')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "e74c70a6-0026-49df-8e9f-d9bd0f5b7fd1",
"comment": "",
"command": "mouseOver",
"target": "linkText=pokusaj007",
"targets": [
["linkText=pokusaj008", "linkText"],
["css=.header-button:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'pokusaj008')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/mypage')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'pokusaj008')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "25f6130c-a823-4f7b-8f06-2c56d487aa52",
"comment": "",
"command": "click",
"target": "css=.mypage-top-content-button",
"targets": [
["css=.mypage-top-content-button", "css:finder"],
["xpath=//div[@id='root']/div[2]/div[2]/div/div/button", "xpath:idRelative"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Dodaj Ploču')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "95b41dea-2780-4eda-a57e-5801d75f4a11",
"comment": "",
"command": "click",
"target": "name=artist",
"targets": [
["name=artist", "name"],
["css=.inputGroup:nth-child(1) > input", "css:finder"],
["xpath=//input[@id='']", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div/input", "xpath:idRelative"],
["xpath=//form/div/input", "xpath:position"]
],
"value": ""
}, {
"id": "05fe5f63-612d-46c8-907d-42931c3342ff",
"comment": "",
"command": "type",
"target": "name=artist",
"targets": [
["name=artist", "name"],
["css=.inputGroup:nth-child(1) > input", "css:finder"],
["xpath=//input[@id='']", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div/input", "xpath:idRelative"],
["xpath=//form/div/input", "xpath:position"]
],
"value": "ROck"
}, {
"id": "f6370e15-1bc5-403a-8de8-dac51f353f93",
"comment": "",
"command": "type",
"target": "name=album",
"targets": [
["name=album", "name"],
["css=.inputGroup:nth-child(2) > input", "css:finder"],
["xpath=(//input[@id=''])[2]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[2]/input", "xpath:idRelative"],
["xpath=//div[2]/input", "xpath:position"]
],
"value": "ROCK"
}, {
"id": "59e90bae-8291-4821-97ec-b63282003ea0",
"comment": "",
"command": "type",
"target": "name=year",
"targets": [
["name=year", "name"],
["css=.inputGroup:nth-child(3) > input", "css:finder"],
["xpath=(//input[@id=''])[3]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[3]/input", "xpath:idRelative"],
["xpath=//div[3]/input", "xpath:position"]
],
"value": "2000"
}, {
"id": "096a01eb-0e38-498f-b783-3d966fa40863",
"comment": "",
"command": "type",
"target": "name=edition",
"targets": [
["name=edition", "name"],
["css=.inputGroup:nth-child(4) > input", "css:finder"],
["xpath=(//input[@id=''])[4]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[4]/input", "xpath:idRelative"],
["xpath=//div[4]/input", "xpath:position"]
],
"value": "prvo"
}, {
"id": "dd59cebc-9833-4703-b36c-333c3f54dee0",
"comment": "",
"command": "click",
"target": "css=.wide .filter-category-unclicked:nth-child(1)",
"targets": [
["css=.wide .filter-category-unclicked:nth-child(1)", "css:finder"],
["xpath=//div[@id='new-item-form']/form/div[5]/div/div/div", "xpath:idRelative"],
["xpath=//div[5]/div/div/div", "xpath:position"]
],
"value": ""
}, {
"id": "e8b5afbc-f89f-432d-ab27-ef9648fe9e5f",
"comment": "",
"command": "click",
"target": "css=.inputGroup:nth-child(6) .filter-category-unclicked:nth-child(8)",
"targets": [
["css=.inputGroup:nth-child(6) .filter-category-unclicked:nth-child(8)", "css:finder"],
["xpath=//div[@id='new-item-form']/form/div[6]/div/div/div[8]", "xpath:idRelative"],
["xpath=//div[6]/div/div/div[8]", "xpath:position"]
],
"value": ""
}, {
"id": "da6d8d16-3754-42df-8868-e36694e6a520",
"comment": "",
"command": "click",
"target": "css=.inputGroup:nth-child(7) .filter-category-unclicked:nth-child(7)",
"targets": [
["css=.inputGroup:nth-child(7) .filter-category-unclicked:nth-child(7)", "css:finder"],
["xpath=//div[@id='new-item-form']/form/div[7]/div/div/div[7]", "xpath:idRelative"],
["xpath=//div[7]/div/div/div[7]", "xpath:position"]
],
"value": ""
}, {
"id": "0ba1d43f-9c3a-420e-83de-fadf5a3354b5",
"comment": "",
"command": "click",
"target": "name=description",
"targets": [
["name=description", "name"],
["css=.inputGroup:nth-child(8) > input", "css:finder"],
["xpath=(//input[@id=''])[5]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[8]/input", "xpath:idRelative"],
["xpath=//div[8]/input", "xpath:position"]
],
"value": ""
}, {
"id": "82995a6f-f3ba-4864-8884-9bb32c36d0b3",
"comment": "",
"command": "type",
"target": "name=description",
"targets": [
["name=description", "name"],
["css=.inputGroup:nth-child(8) > input", "css:finder"],
["xpath=(//input[@id=''])[5]", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[8]/input", "xpath:idRelative"],
["xpath=//div[8]/input", "xpath:position"]
],
"value": "opasno dobra ploca"
}, {
"id": "33220eab-19ee-4864-a0a6-6358288e163b",
"comment": "",
"command": "click",
"target": "id=inputImage",
"targets": [
["id=inputImage", "id"],
["name=image", "name"],
["css=#inputImage", "css:finder"],
["xpath=//input[@id='inputImage']", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/div[9]/input", "xpath:idRelative"],
["xpath=//div[9]/input", "xpath:position"]
],
"value": ""
}, {
"id": "de19d05c-8d5c-4edd-b92c-2af232335e96",
"comment": "",
"command": "click",
"target": "css=.wide:nth-child(10)",
"targets": [
["css=.wide:nth-child(10)", "css:finder"],
["xpath=//input[@value='Dodaj']", "xpath:attributes"],
["xpath=//div[@id='new-item-form']/form/input", "xpath:idRelative"],
["xpath=//form/input", "xpath:position"]
],
"value": ""
}]
},- Ulazi:
- podaci koji se unose tokom prijave: korisničko ime:admin, lozinka: admin
- odabrati ploču
- pitisak gumba za brisanje bloče
2.Koraci ispitivanja:
- pokretanje web aplikacije
- prijava u sustav
- Verificirati očekivane rezultate
- pregledavanje ploča
- odabir određene ploče
- brisanje ploče
- Očekivani rezultat: Admin će se prijaviti, te ukloniti ploču s web aplikacije.
4.Dobiveni rezultat:
5.Izlazni kod:
{
"id": "78108864-ad95-49b9-afe8-a2905ab7b49b",
"name": "2.4",
"commands": [{
"id": "d0d6eb63-0038-475b-a65d-79766f4d999c",
"comment": "",
"command": "open",
"target": "https://switchpoint1-c39a98ff47c7.herokuapp.com/",
"targets": [],
"value": ""
}, {
"id": "79bd635b-d4e0-4e9a-b604-b640f681f1b6",
"comment": "",
"command": "setWindowSize",
"target": "732x852",
"targets": [],
"value": ""
}, {
"id": "1649ddd5-a001-4a50-8117-325f40bfaa19",
"comment": "",
"command": "click",
"target": "linkText=Log in",
"targets": [
["linkText=Log in", "linkText"],
["css=.header-button:nth-child(2)", "css:finder"],
["xpath=//a[contains(text(),'Log in')]", "xpath:link"],
["xpath=//div[@id='root']/div/div/a[2]", "xpath:idRelative"],
["xpath=//a[contains(@href, '/login')]", "xpath:href"],
["xpath=//a[2]", "xpath:position"],
["xpath=//a[contains(.,'Log in')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "27372325-3439-4399-90d1-6cb5aeb397ac",
"comment": "",
"command": "click",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "e02fb930-40c0-4e9d-83a3-d4617ad2426b",
"comment": "",
"command": "type",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=input:nth-child(3)", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input", "xpath:idRelative"],
["xpath=//input", "xpath:position"]
],
"value": "admin"
}, {
"id": "d7ccd939-451a-475d-afef-0b802847958b",
"comment": "",
"command": "type",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=input:nth-child(5)", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[2]", "xpath:idRelative"],
["xpath=//input[2]", "xpath:position"]
],
"value": "admin"
}, {
"id": "1646fc2a-ddc5-48f1-af7f-755283f6042e",
"comment": "",
"command": "sendKeys",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=input:nth-child(5)", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[@id='root']/div[2]/form/input[2]", "xpath:idRelative"],
["xpath=//input[2]", "xpath:position"]
],
"value": "${KEY_ENTER}"
}, {
"id": "0658bbd1-8804-4091-bfa7-4e2c8302dfb9",
"comment": "",
"command": "click",
"target": "css=.card:nth-child(2) > .delete-vinyl-button",
"targets": [
["css=.card:nth-child(2) > .delete-vinyl-button", "css:finder"],
["xpath=//div[@id='root']/div[2]/div[2]/div[2]/button", "xpath:idRelative"],
["xpath=//div[2]/button", "xpath:position"]
],
"value": ""
}]
}],
"suites": [{
"id": "0db5d2dd-85c4-468a-b2c3-1c565a7f6aff",
"name": "Default Suite",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["6ab7875b-15ef-4ae7-8aeb-9802a0fe1f7f"]
}],
"urls": ["https://switchpoint1-c39a98ff47c7.herokuapp.com/"],
"plugins": []
}SwitchPoint