This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"baseUrl": "https://www.google.com", | |
"username": "testUser", | |
"password": "12345" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Login İşlemleri | |
## Kullanıcı Girişi | |
* Login sayfası açılır | |
* Kullanıcı adı girilir | |
* Şifre girilir | |
* Giriş butonuna tıklanır |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Step("“<url>” sayfası açılır") | |
public void openPage(String url) { | |
WebDriver driver = DriverFactory.getDriver(); | |
driver.get(url); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Google Testi | |
## Sayfanın Açılması | |
* "https://www.google.com" sayfası açılır | |
* Arama kutusuna "Gauge Framework" yazılır | |
* Arama butonuna tıklanır | |
* Sonuçlar görüntülenir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Elemanlara döngü ile erişim | |
elements = {"hidrojen":1, "oksijen":8, "karbon":6, "helyum":2} | |
for i in elements.keys(): | |
print(i, end=" ") | |
print() | |
for item in elements.items(): | |
print(item) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_dict1 = {"Adana":2, "İstanbul":34, "İzmir":35, "Çanakkale":17} | |
my_dict2 = {"Samsun":55, "Adana":1} | |
plakalar = {**my_dict1, **my_dict2} #elemanlar yeni sözlüğe atılır. | |
print(plakalar) | |
# Eğer iki dict.de de aynı key isminde değer atanmışsa son tanımlanan dict'e göre güncellenir | |
#ekran çıktısı | |
{'Adana': 1, 'İstanbul': 34, 'İzmir': 35, 'Çanakkale': 17, 'Samsun': 55} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#update() bir sözlüğü diğeri ile birleştirip günceller | |
my_dict = {"Adana":1, "İstanbul":34, "İzmir":35, "Çanakkale":17} | |
my_dict2 = {"Samsun":55 , 'Bilecik':11 } | |
my_dict.update(my_dict2) | |
print(my_dict) | |
#ekran çıktısı | |
{'Adana': 1, 'İstanbul': 34, 'İzmir': 35, 'Çanakkale': 17, 'Samsun': 55, 'Bilecik': 11} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sözlük = {"kitap" : "book", | |
"bilgisayar" : "computer", | |
"programlama": "programming", | |
"dil" : "language", | |
"defter" : "notebook"} | |
#del [key] -> key değerini alır ve o elemanı siler | |
del sözlük["defter"] | |
print(sözlük) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sözlük = {"kitap" : "book", | |
"bilgisayar" : "computer", | |
"programlama": "programming", | |
"dil" : "language", | |
"defter" : "notebook"} | |
sözlük['dil'] = "tongue" | |
print(sözlük) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sözlük = {"kitap" : "book", | |
"bilgisayar" : "computer", | |
"programlama": "programming", | |
"dil" : "language", | |
"defter" : "notebook"} | |
sözlük['Yazılım'] = "Software" | |
print(sözlük) | |
#ekran çıktısı |
NewerOlder