I have written some performance test cases using XCTest framework in my project. I was wondering is it possible to set baseline value for performance testing programmatically before the first run or is there any other way to set the baseline except from the performance result window.
Can we set performance test case baseline programmatically in xcode?
1.4k views Asked by CastleErised14 At
2
There are 2 answers
Related Questions in XCODE
- Using Storyboard Reference
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Error when creating UIImage
- fade in an bounce animation subview
- How to delete static library ".a" file from xcode project?
- Error in main.storyboard
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Using paths bonded to a XCode project to be shared
- How to set the time of Local notification in app to random between two times? (swift)
- "Invalid Signature, code object not signed at all" error
Related Questions in PERFORMANCE-TESTING
- Does closing Scanner affect performance
- Can we set performance test case baseline programmatically in xcode?
- How to test RESTful web service performance
- Performance testing of frontend JavaScript
- Why am I receiving Response code: Non HTTP response code: java.net.SocketException?
- Getting DNS resolution time and response time with Python
- Measuring postgresql performance using pgbench
- Wikipedia NewPP limit report Parsed by mw1079
- How to find out memory consumed by classes, objects, variables, etc
- How to interpret browser wait time in browser snapshot
Related Questions in XCTEST
- Can we set performance test case baseline programmatically in xcode?
- XCTest UI Record and Play - Simulator not updating UI
- Can't import main swift classes into test target?
- Using Xcode7's UI tests to create app screenshots for the App Store
- Running tests after an asynchronous setUp method is finished
- XCTest exception when using keyValueObservingExpectationForObject:keyPath:handler:
- XCTestAssertNil crash due to "nil" parameter
- How to use XCTest framework to test REST based native iOS appliction?
- MKAnnotation via XCTest UI Testing
- How to test Xcode Source Editor Extension?
Related Questions in TESTCASE
- Can we set performance test case baseline programmatically in xcode?
- Android JUnit: assert inside the handler
- Nunit runsTestCase with a TestCaseSource with the first iteration having no parameters? Why?
- junit 4 all pairwise permutations of test methods
- Changing sequence of JUnit gives random errors
- How to handle system.exit in the cucumber test case
- How to write the test case in Jasmine in Angular2 for redirect URL?
- JUnit 4 Test Case
- Cannot find context in class which extends TestCase
- How can I know that TestNG framework is suitable to perform test case prioritization in regression testing?
Related Questions in BASELINE
- Can we set performance test case baseline programmatically in xcode?
- Equal vertical space between images and lines of text
- Clearcase UCM - How to get the config spec of a given baseline?
- CSS vertical alignment and baseline position
- Is it possible to align a TextView's baseline with the bottom of the parent layout?
- Subversion: Is there any good reason not to create a Tag from multiple revisions?
- How to see what changed in a sprint in greenhopper
- Matlab Image Baseline (Offset Removal) Correction
- Image Offset (2D Baseline) Remove in Matlab
- Is there a function in dplyr/forcats to display count and percentages from a dataframe of dichotomous variables?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I've unfortunately not found a way to set the baseline programmatically. But there are some other options for setting it.
After you have set the baseline once through Xcode you can then access the info.plist where the baseline is stored and update it that way.
To get to the stored baseline data right click on your .xcodeproj file and select "Show package contents" then go into the "xcshareddata" folder and the "xcbaselines" folder will have the data. I've verified that after updating the relevant info.plist the change is reflected in future test runs.
Alternatively, to avoid initially setting the baseline in Xcode you might try (as the article linked below suggests) to generate the baseline info.plist with a script, but I have not given that a try myself.
More info in this great article https://developer.squareup.com/blog/measureblock-how-does-performance-testing-work-in-ios/ in the "Where is the baseline stored?" and "Can I generate plists with a script?" sections.
Hope this info helps someone else out.