-
-
Notifications
You must be signed in to change notification settings - Fork 742
BeforeSuite and AfterSuite implement #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you. I will need some time to have a deep look. So this is Work In Progress? |
@DavertMik Yes. This enhancement is "In progress". I have problem with |
@DavertMik Looks like I fixed the issue with AfterSuite Hook. Now it works! Please review. BTW tested with WebdriverIO helper on Windows |
@DavertMik When you will be able to check this changes? Looks like it's working! |
That's really cool. I hope I will have a time to review and merge it after the weekend. Thanks for your work. |
What I need from you is an example of usage of this feature so I could document it. |
@DavertMik Also You can use these feature, If your web application has any integration with client application. E.g. web application connects to client application in my project using Websockets to send/get information about installed apps(games) and statuses about installation on PC. Also webapplication calls client app to launch the game. So in my web tests sometimes I need to install different versions of client app for tests (with different settings) to check that everything works well. But I don't need to reinstall app after each test or one time (on launching tests). Because of this BeforeSuite|AfterSuite are best for me |
Thank you very much! That was awesome work |
Just a question BeforeSuite will work for all files in suite or only for a file where it was declared? |
Ok, I didn't come to a better way to write about it than to cite you on site http://codecept.io/basics/#beforeSuite If you think this can be improved, please edit https://github.com/Codeception/CodeceptJS/blob/master/docs/basics.md |
@DavertMik Only for a file, where it was declared. BTW, beforeSuite and afterSuite have access to I object. here is a sample from my tests:
note: I create custom handler in my custom helper to sync files from remote server. It'works as usual |
For #232