zalando / SwiftMonkey

A framework for doing randomised UI testing of iOS apps
MIT License
1.95k stars 174 forks source link

How to find out the seed number? #54

Closed upeugene closed 6 years ago

upeugene commented 6 years ago

I use random seed numbers to start test. How to figure out seed number when app is crashing? to reproduce test with this seed number.

singh88 commented 6 years ago

This line is used to set seed value https://github.com/zalando/SwiftMonkey/blob/befbf62a93d3ff24edba25d9de361edf3f2d88bc/SwiftMonkey/Monkey.swift#L99 You can get that value from here or you can pass this value from your test function and set this init with your seed value. https://github.com/zalando/SwiftMonkey/blob/befbf62a93d3ff24edba25d9de361edf3f2d88bc/SwiftMonkey/Monkey.swift#L100