Sunday, October 26, 2014

Codeception Helpers

Codeception has always the flexibilty to add the add the custom actions to the test suite. It just doesn't restrict to add custom actions. 'bootstrap' is the command to that codeception generates these modules. These modules actually called the Helpers. These Helper files are always created in tests/support. So here every action defined is a public function. So we need to run a build 'build' command. Once...

Sunday, October 19, 2014

Codeception Modules

In Codception various modules are comes as packages initially. Some of them are Webdriver,symphony,Laravel etc. Modules allow you to choose the actions and assertions that can be performed in tests. All actions and assertions that can be performed by the Tester object in a class are defined in modules. So you might be thinking that you are limited with the modules coming with Codeception installation. But...

Monday, October 13, 2014

Codeception:Variables for UI Elements

As we know we can write complex tests using codeception.Think of a scenario of a login page. We have generally 3 fields in login page. 1.User id fiels 2.Password field 3.Sign in button. We have created a test using codeception to login and that worked fine. But think in future if we have to login to the same website multiple times using different user ids and passwords and the credentials are changing...

Friday, October 10, 2014

Repopulation of database using mysql instead of db module

What is DB module: The DB module is used to cleaning database before each test. So this module was added into codeception.yml. To have your database properly cleaned you should configure it to access the database. Also provides actions to perform checks in database. The cofig can be done in below formats: modules:    enabled: [Db]    config:       Db:  ...
Powered by Blogger.