def test_selenium_failed(self):
     browser = SeleniumFactory().create()
     browser.open("http://www.amazon.com")
     assert "Amazon.com" in browser.get_title()
     browser.job_failed()
     data = self.retrieve_job_details(browser)
     assert not data['passed']
     browser.stop()
Пример #2
0
 def test_selenium_failed(self):
     browser = SeleniumFactory().create()
     browser.open("http://www.amazon.com")
     assert "Amazon.com" in browser.get_title()
     browser.job_failed()
     data = self.retrieve_job_details(browser)
     assert not data['passed']
     browser.stop()
Пример #3
0
class testSelenium1(unittest.TestCase):
    def setUp(self):
        self.browser = SeleniumFactory().create()

    def test_open(self):
        self.browser.open("http://amazon.com")
        assert "Amazon.com" in self.browser.get_title()

    def tearDown(self):
        self.browser.stop()
Пример #4
0
class testSelenium1(unittest.TestCase):
    def setUp(self):
    	self.browser = SeleniumFactory().create()
    					
    def test_open(self):
      	self.browser.open("http://amazon.com")
        assert "Amazon.com" in self.browser.get_title()
    
    def tearDown(self):
    	self.browser.stop()