コード例 #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')
コード例 #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')
コード例 #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')
コード例 #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)
コード例 #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)
コード例 #6
0
 def setup_method(self, method):
     super(type(self), self).setup_method(method)
     self.u = Upload().wait_until_loaded()
コード例 #7
0
 def setup_method(self, method):
     super(CheckFileUpload, self).setup_method(method)
     self.u = Upload(self.driver).open().wait_until_loaded()
コード例 #8
0
 def setup_method(self, method):
     super(type(self), self).setup_method(method)
     self.u = Upload().wait_until_loaded()