You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
881 B
38 lines
881 B
2 years ago
|
//
|
||
|
// LekangGuardUITestsLaunchTests.m
|
||
|
// LekangGuardUITests
|
||
|
//
|
||
|
// Created by ecell on 2022/9/21.
|
||
|
//
|
||
|
|
||
|
#import <XCTest/XCTest.h>
|
||
|
|
||
|
@interface LekangGuardUITestsLaunchTests : XCTestCase
|
||
|
|
||
|
@end
|
||
|
|
||
|
@implementation LekangGuardUITestsLaunchTests
|
||
|
|
||
|
+ (BOOL)runsForEachTargetApplicationUIConfiguration {
|
||
|
return YES;
|
||
|
}
|
||
|
|
||
|
- (void)setUp {
|
||
|
self.continueAfterFailure = NO;
|
||
|
}
|
||
|
|
||
|
- (void)testLaunch {
|
||
|
XCUIApplication *app = [[XCUIApplication alloc] init];
|
||
|
[app launch];
|
||
|
|
||
|
// Insert steps here to perform after app launch but before taking a screenshot,
|
||
|
// such as logging into a test account or navigating somewhere in the app
|
||
|
|
||
|
XCTAttachment *attachment = [XCTAttachment attachmentWithScreenshot:XCUIScreen.mainScreen.screenshot];
|
||
|
attachment.name = @"Launch Screen";
|
||
|
attachment.lifetime = XCTAttachmentLifetimeKeepAlways;
|
||
|
[self addAttachment:attachment];
|
||
|
}
|
||
|
|
||
|
@end
|