Ejemplo n.º 1
0
class CheckFileUpload(SaunterTestCase):
    def setup_method(self, method):
        super(type(self), self).setup_method(method)
        self.u = Upload().wait_until_loaded()

    def teardown_method(self, method):
        super(type(self), self).teardown_method(method)

    @pytest.mark.adam
    def test_local_upload(self):
        preview = self.u.upload('english_muffin.jpg')
Ejemplo n.º 2
0
class CheckFileUpload(SaunterTestCase):
    def setup_method(self, method):
        super(type(self), self).setup_method(method)
        self.u = Upload().wait_until_loaded()

    def teardown_method(self, method):
        super(type(self), self).teardown_method(method)

    @pytest.mark.adam
    def test_local_upload(self):
        preview = self.u.upload('english_muffin.jpg')
Ejemplo n.º 3
0
class CheckFileUpload(SaunterTestCase):
    def setup_method(self, method):
        super(CheckFileUpload, self).setup_method(method)
        self.u = Upload(self.driver).open().wait_until_loaded()

    def teardown_method(self, method):
        super(CheckFileUpload, self).teardown_method(method)

    @pytest.mark.adam
    def test_local_upload(self):
        preview = self.u.upload('english_muffin.jpg')
        self.take_named_screenshot('potato')
Ejemplo n.º 4
0
    def test_local_upload(self):
        self.u = Upload(self.driver).open().wait_until_loaded()
        preview = self.u.upload('english_muffin.jpg')
        self.take_named_screenshot('potato')
        import time
        time.sleep(20)

    # @pytest.mark.banana
    # def test_banana(self):
    #     self.driver.get("http://www.adobe.com/software/flash/about/")
    #     import time
    #     time.sleep(100000)
Ejemplo n.º 5
0
class CheckFileUpload(SaunterTestCase):
    def setup_method(self, method):
        super(CheckFileUpload, self).setup_method(method)
        # self.u = Upload(self.driver).open().wait_until_loaded()

    def teardown_method(self, method):
        super(CheckFileUpload, self).teardown_method(method)

    @pytest.mark.adam
    def test_local_upload(self):
        self.u = Upload(self.driver).open().wait_until_loaded()
        preview = self.u.upload('english_muffin.jpg')
        self.take_named_screenshot('potato')
        import time
        time.sleep(20)

    # @pytest.mark.banana
    # def test_banana(self):
    #     self.driver.get("http://www.adobe.com/software/flash/about/")
    #     import time
    #     time.sleep(100000)
Ejemplo n.º 6
0
 def setup_method(self, method):
     super(type(self), self).setup_method(method)
     self.u = Upload().wait_until_loaded()
Ejemplo n.º 7
0
 def setup_method(self, method):
     super(CheckFileUpload, self).setup_method(method)
     self.u = Upload(self.driver).open().wait_until_loaded()
Ejemplo n.º 8
0
 def setup_method(self, method):
     super(type(self), self).setup_method(method)
     self.u = Upload().wait_until_loaded()