Skip to content

Conversation

@jungining
Copy link
Contributor

목표

appium을 python에서 실행하기 위한 코드를 작성하였습니다.

유형

feature(기능추가))

세부사항

세부 사항을 리스트 형태로 적어주세요.

    1. appium을 실행시킬 코드를 작성하였습니다.
  • 2
  • ...

코드

강조하고자 하는 코드를 아래 적으면 됩니다

# -*- coding: utf-8 -*-
#iOS environment
import unittest
from appium import webdriver

desired_caps = {
	"platformName" : "iOS",
	"platformVersion" : "11.2",
	"deviceName" : "iPhone SE",
	"app" : "/Users/Jungin/Library/Developer/Xcode/DerivedData/Undang-eyvfnkzjzmxlqebazqxtenjcakpn"
}

def test_undang():
	driver = webdriver.Remote('http://0.0.0.0:4723/wd/hub',desired_caps)
	driver.switch_to.context('WEBVIEW')

	assert '지금 한강은' in driver.page_source
	driver.quit()

test_undang()

참고자료

  • 참고한 블로그나 사이트 링크

@TWpower TWpower changed the title enable iOS unit Test enable iOS functional test Mar 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant