OnnxruntimeModuleExampleUITests.m 566 Bytes
Newer Older
gaoqiong's avatar
gaoqiong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#import <XCTest/XCTest.h>

@interface OnnxruntimeModuleExampleUITests : XCTestCase

@end

@implementation OnnxruntimeModuleExampleUITests

- (void)setUp {
  self.continueAfterFailure = NO;
}

- (void)testExample {
  XCUIApplication *app = [[XCUIApplication alloc] init];
  [app launch];

  XCTAssert([app.textFields[@"output"] waitForExistenceWithTimeout:180]);
  NSString* value = app.textFields[@"output"].value;
  XCTAssertEqualObjects(value, @"Result: 3");
}

@end