7. +10 (+8, + 6, +2) Найденная баг
-100 Assert.IsTrue(True)
0 Бага нет, тест есть
-10 Бага есть, тест зелёный
-10 Бага нет, тест красный
∑ -10
iterations
Каждый ненайденный баг
13. Selenium 2.0 → 3.0
W3C working draft 2013
JsonWireProtocol
14. Get element text (JSON Wire Example)
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Connection: close
{"sessionId":"Awesome", "status":0, "value":"Testing Dojo"}
GET http://127.0.0.1:9999/session/Awesome/element/2026335-1/text HTTP/1.1
...
Content-Type: application/json;charset=UTF-8
Connection: close
Accept: application/json
14
22. # put it in setUp
self.driver =
webdriver.Remote(command_executor='http://localhost:9999',
desired_capabilities={'app': 'C:testApp.exe'})
# put it in test method body
win = self.driver.find_element_by_id('WpfTestApplicationMainWindow')
win.find_element_by_id('SetTextButton').click()
assert 'CARAMBA' == self.driver.find_element_by_id('MyTextBox').text
Пример теста