In this post I will show you how to create global variable which can be use in any codeception test scripts file. Suppose that we have user name and password which need to be use in all test scripts for login to application. This is good practices to put these values in one place instead of passing in multiple test case.
You should see that “_bootstrap.php” files are generated in folder “acceptance”, “functional” , “unit” and at root of test folder.
You can create a variable in this files with any desire values and can be use in corresponding folders scripts.
You should see that “_bootstrap.php” files are generated in folder “acceptance”, “functional” , “unit” and at root of test folder.
You can create a variable in this files with any desire values and can be use in corresponding folders scripts.