Esempio n. 1
0
	def setUpClass(self):
		self.driver = get_driver()
	def setUpClass(self):	#所有用例執行前,執行一次,	def,define,用來聲明函數
		self.driver = get_driver()
Esempio n. 3
0
 def setUpClass(cls):
     cls.driver = get_driver()
	def setUpClass(self):
    
        self.driver = get_driver()

	@classmethod
	def tearDownClass(self):
        self.driver.quit()

	def test_inpiut_meg(self):
       
        el14 = self.driver.find_element_by_id("com.tolka.multimediachat:id/btn_play")
        el14.click()

        sleep(3)

		el15 = self.driver.find_element_by_id("com.tolka.multimediachat:id/text_login")
        el15.click()
		
        sleep(3)

		el16 = self.driver.find_element_by_id("com.tolka.multimediachat:id/btn_country_code")
		el16.click()

		sleep(3)

        el17 = self.driver.find_element_by_id("com.tolka.multimediachat:id/button_search")
		el17.click()
		sleep(3)

		el18 = self.driver.find_element_by_id("com.tolka.multimediachat:id/edit_search")
		el18.click()
		el18.send_keys("886")

		sleep(3)

		el19 = self.driver.find_element_by_id("com.tolka.multimediachat:id/tv_item_country_body_name")
		el19.click()

		sleep(3)

		el20 = self.driver.find_element_by_id("com.tolka.multimediachat:id/edit_phone")
		el20.click()
		el20.send_keys("0999333444")
		
		sleep(3)
		
		el21 = self.driver.find_element_by_id("com.tolka.multimediachat:id/btn_next")
		el21.click()
		
		sleep(3)

		el22 = self.driver.find_element_by_id("android:id/button1")
		el22.click()
		
		sleep(3)

		el23 = self.driver.find_element_by_id("com.tolka.multimediachat:id/edit_password")
		el23.click()
		el23.send_keys("12345678")
		sleep(3)

		el24 = self.driver.find_element_by_id("com.tolka.multimediachat:id/btn_banner_next")
		el24.click()