# Generating test flows

Loadmill allows streamlining tests generation by capturing user behavior on a mobile device.

To generate a test follow the following steps:

1. Ensure your device is up and configured correctly with [mitm certificate](https://docs.loadmill.com/introduction/deviceless-mobile-testing/installing-certificate-on-mobile-devices) and [proxy settings](https://docs.loadmill.com/introduction/deviceless-mobile-testing/configuring-proxy-on-mobile-devices).
2. Start your application and position it's state to the beginning of a scenario
3. Start loadmill proxy by clicking<img src="https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-9adca09b386a03ea7046531280d75a2e7d9589c5%2Fimage.png?alt=media" alt="" data-size="line">,\
   Tip: make sure you start from an empty list, you can clear the residues by clicking <img src="https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-6538e12f6f82b7ac161917fc5c1a67d66b0cd730%2Fimage.png?alt=media" alt="" data-size="line">.
4. Drive the application on your device by the scenario you want to capture, make sure requests are captured in the proxy
5. If needed, adjust the filter<img src="https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-7686ec88e37665ce6aab9187441bd51c313a9a71%2Fimage.png?alt=media" alt="" data-size="line">to focus or relevant domain(s) to reduce potential noise from irrelevant requests.
6. Once finished driving the scenario, click on <img src="https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-a23e411446d52ccd2ae6a55a891e4bae25682211%2Fimage.png?alt=media" alt="" data-size="line">button.\
   loadmill will filter out requests that are highly suspected as irrelevant and strikes them out. You can review the filtered requests and if needed restore them by selecting and clicking<img src="https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-77c365573bc44e7f688393d187620a0b4cf7777f%2Fimage.png?alt=media" alt="" data-size="line">.
7. Adjust the destination suite in the suite field: <img src="https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-3ffd0a0f22de37c49ec7f3623d6aca6d04a45765%2Fimage.png?alt=media" alt="" data-size="line">
8. To generate the test, click on <img src="https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-26a02fc6bdf59bee7877e872dd54b11a26ff5abb%2Fimage.png?alt=media" alt="" data-size="line">
9. To review the test navigate to Loadmill section <img src="https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-1e6f4252b66b27784cf0654e43df918315d784ed%2Fimage.png?alt=media" alt="" data-size="line">go to Test suite\ <img src="https://684333474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LHDbUNdi3wPd9vSolzU%2Fuploads%2Fgit-blob-ec0ebb26a2b339f29eb17fe62a361f9dd4243cb7%2Fimage.png?alt=media" alt="" data-size="original">\
   And select your test suite,\
   The recently created flow in the list will be marked with the recent timestamp.
