Appium ??????????
???????????? ???????[ 2017/7/6 10:32:13 ] ?????????????????? Appium
?????????????????????裬??????о????????????????????????? iOS??????? Web ???????????????? Appium ????????????????????Щ???????????????????? API ?????????????????????????????Щ??????????????????? iOS ???????????????????????????Android ?????????????????
?????????????к????????????????????????д??????μ????????? Google ?????????????????????????????????????????????3???????????????????????Щ???μ???????????? Appium ?????????????Щ????????п??????????????????????????????д????????
????Appium
??????????????????????????????????????????????????????? Appium ????????????????????????????????????????????????
???????????Appium ???????????????????? iOS??Android ?? Web ???????????????????????????д???????????????????????? Appium ????????????д???????????????Щ?????????????????????????(???? iOS )????????????????????????? Appium ?????????????????????? Appium ??????Appium ???????豸?????????????????????????豸?????
?????豸??
???????????????????????????? iOS ??????????????????????????? WebDriverAgentRunner ??????????? WDA?????????????????????? App ???в????
?????e???????????????е????????????????????? app???????????????????????????в?????????????????????
??????????????????????? UI ?????????????? Xcode 7 ????????UI Automation ???????? JS ????????ò???????? Xcode 7 ??????????μ??? UI Testing???? Xcode 8 ?и??????????? UI Automation ???????????????????? iOS 9 ???????????汾?У?Appium ????????? UI Testing ????????????????UI Automation??
?????????????? UI Testing ?????????????????????????л?????????????????????? Add target ????????????????£????????????????? .m ???????????????:
????#import <XCTest/XCTest.h>
????@interface Test : XCTestCase
????@end
????@implementation Test
????- (void)setUp {
????[super setUp];
????// Put setup code here. This method is called before the invocation of each test method in the class.
????// In UI tests it is usually best to stop immediately when a failure occurs.
????self.continueAfterFailure = NO;
????// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
????[[[XCUIApplication alloc] init] launch];
????// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
????}
????- (void)tearDown {
????// Put teardown code here. This method is called after the invocation of each test method in the class.
????[super tearDown];
????}
????- (void)testExample {
????// Use recording to get started writing UI tests.
????// Use XCTAssert and related functions to verify your tests produce the correct results.
????}
????@end
??????????????????????????? setUp ????????????Щ????????????????????? [[[XCUIApplication alloc] init] launch]; ????????????????????????????????tearDown ????????????????????????
???????е??????????????? test ?????????????? - (void)testExample???e?????ò????? OC ??????????????????????? Annotation ???????????????????????????????? Java ????????:
????@test
????public void example() {
????// do some test
????}
???????????????????????????????? Command + U ???????в??????????????н???????????? Appium ??????????????? app ????????????ò????е?????????????????????????????е? [[XCUIApplication alloc] init] ???????????????? app ????????????????????? launch ???????????????? app??
????????????????????????????????????????????????????XCUIApplication ??????????з??????????????????? BundleID:
????[[XCUIApplication alloc] initPrivateWithPath:nil bundleID:@"com.bestswifte.targetapp"];
??????????????????? BundleID ??????????????????????滻??????? ID ????????????? BundleID ??????????????????????á??????????????????????????????????????????з???????????????? XCUIApplication ????????????????????????з?????
?????????????????е??????????滻?????? init ????????????????????????????????????????????????????????????????????????????????????????????????????????
?????????????????????????? testExample ??????????????????? Runloop ??????????????β???????????????????????? TCP ???????????紫????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11