Skip to content

Commit

Permalink
skripte(10&11): ispravljeni broken linkovi i formatiranje
Browse files Browse the repository at this point in the history
  • Loading branch information
TodorovicSrdjan committed Jan 12, 2024
1 parent da197bf commit e86c892
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
29 changes: 15 additions & 14 deletions skripte/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Sadržaj:

Koristan materijal:
* [TestNG documentation][testng docs]
* [Selenium Tutorial for Beginners | From Zero to Selenium (26m13s)][testng 4z2s]
* [Selenium Tutorial for Beginners - From Zero to Selenium (26m13s)][testng 4z2s]

---

Expand Down Expand Up @@ -115,44 +115,44 @@ public class StudentTest {

@BeforeTest
public void preTesta() {
logger.info("pre testa");
logger.info("pre testa");
}

@AfterTest
public void posleTesta() {
logger.info("nakon testa");
logger.info("nakon testa");
}

@BeforeClass
public void preKlase() {
logger.info("pre svih testnih metoda testne klase");
logger.info("pre svih testnih metoda testne klase");
}

@AfterClass
public void posleKlase() {
logger.info("nakon svih testnih metoda testne klase");
logger.info("nakon svih testnih metoda testne klase");
}

@BeforeMethod
public void setUp() {
logger.info("pre test metode");
logger.info("pre test metode");
}

@AfterMethod
public void tearDown() {
logger.info("nakon test metode");
logger.info("nakon test metode");
}

@Test
public void demo1(){
logger.info("demo1 test");
assertEquals(10, 10);
logger.info("demo1 test");
assertEquals(10, 10);
}

@Test
public void demo2(){
logger.info("demo 2 - failed");
assertEquals(10, 1);
logger.info("demo 2 - failed");
assertEquals(10, 1);
}
}
```
Expand Down Expand Up @@ -234,19 +234,19 @@ Izgled dela konfiguracionog fajla:
```XML
<suite name="Naziv Suite-a">

...
...

<test name="osnovni testovi" >
<parameter name="param1" value="jedan"></parameter>
<parameter name="param2" value="dva"></parameter>
<parameter name="param3" value="tri"></parameter>
<parameter name="param4" value="cetiri"></parameter>

...
...

</test>

...
...

</suite>
```
Expand Down Expand Up @@ -798,6 +798,7 @@ Ova greška se javlja kada:
[selenium api docs]: https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/WebDriver.html
[selenium guru99]: https://www.guru99.com/selenium-tutorial.html

[selenium exceptions - 4 common exceptions]: https://www.youtube.com/watch?v=93RGwXY6b6c
[selenium troubleshooting]: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors

[selenium exceptions no such element - Let's Kode It]: https://www.youtube.com/watch?v=y6SYtAh-kCk
Expand Down
6 changes: 5 additions & 1 deletion skripte/11.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ string linka u svakom testu koji ih prosleđuje.
Koristan materijal:
* [SeleniumHQ/selenium Wiki: PageFactory][pagefactory - selenium wiki]
* [Selenium Easy: Page Factory Design Pattern (Enhanced POM)][pagefactory - seleniumeasy]
* [Page Object Model (POM) With Page Factory | Selenium Tutorial][pagefactory - softwaretestinghelp]
* [Page Object Model (POM) With Page Factory][pagefactory - softwaretestinghelp]

---

Expand Down Expand Up @@ -246,6 +246,10 @@ private WebElement btn;

Dolazi do pronalaska button-a jer barem jedno poklapanje.

### CacheLookup



[#]: / (---------------------------------------------------------)

[selenium e2e lambdatest]: https://www.youtube.com/watch?v=oHc62KHOfg0
Expand Down

0 comments on commit e86c892

Please # to comment.