NSObject
. Example:import Foundation
import ZebrunnerAgent
public class ObservationConfiguration: NSObject {
public override init() {
ZebrunnerObserver.setUp(baseUrl: "{https://someproj.zebrunner.com}",
projectKey: "XCTestIOS",
refreshToken: "{refreshToken}")
}
}
baseUrl
- URL of your Zebrunner workspace
projectKey
- The possible values can be found in Zebrunner on Projects tab
refreshToken
- Generate it on Account and Profile page on Zebrunner
Info.plist
or Xcode settings of Test Target (Info tab) add Principal class with value {YourTarget}.{YourPrincipalClass}
where
YourTarget
- project target where observation set up class created
YourPrincipalClass
- class name of observation configuration classArtifact
- you can use static methods from this class to add artifacts and references to test cases and test runsLabel
- you can use static methods from this class to add Labels to test cases and test runsScreenshot
- use when you need attach screenshot to test caseYou can assign test maintainer for your test case you'll need to set maintainer's zebrunner username value to testMaintainer
variable in test case:
func testSmth() {
testMaintainer = "dprymudrau"
let app = XCUIApplication()
app.launch()
...
}
link |
Stars: 0 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics