payload: {"action":"created","issue":{"url":"https://api.github.com/repos/mcdcorp/opentest/issues/157","repository_url":"https://api.github.com/repos/mcdcorp/opentest","labels_url":"https://api.github.com/repos/mcdcorp/opentest/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/mcdcorp/opentest/issues/157/comments","events_url":"https://api.github.com/repos/mcdcorp/opentest/issues/157/events","html_url":"https://github.com/mcdcorp/opentest/issues/157","id":468606956,"node_id":"MDU6SXNzdWU0Njg2MDY5NTY=","number":157,"title":"how to pass different environment config parameters in a script?","user":{"login":"prapriya","id":50862463,"node_id":"MDQ6VXNlcjUwODYyNDYz","avatar_url":"https://avatars1.githubusercontent.com/u/50862463?v=4","gravatar_id":"","url":"https://api.github.com/users/prapriya","html_url":"https://github.com/prapriya","followers_url":"https://api.github.com/users/prapriya/followers","following_url":"https://api.github.com/users/prapriya/following{/other_user}","gists_url":"https://api.github.com/users/prapriya/gists{/gist_id}","starred_url":"https://api.github.com/users/prapriya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prapriya/subscriptions","organizations_url":"https://api.github.com/users/prapriya/orgs","repos_url":"https://api.github.com/users/prapriya/repos","events_url":"https://api.github.com/users/prapriya/events{/privacy}","received_events_url":"https://api.github.com/users/prapriya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-07-16T11:44:36Z","updated_at":"2019-07-16T19:53:10Z","closed_at":null,"author_association":"NONE","body":"We have 2 Environments one is UAT and other is PreProd.\r\nWe need to run all the scripts in both the environment.so what are the possible changes that are needed in a script to run on both the environments?\r\nI have created Data env folder in test repo for both the environments as suggested in the document.\r\nNow,How can I make my script environment independent.\r\nBasically we run a complete functional suite of around 200+ cases on UAT environment and now I need the same suite to  run on a preprod environment.\r\n"},"comment":{"url":"https://api.github.com/repos/mcdcorp/opentest/issues/comments/511961254","html_url":"https://github.com/mcdcorp/opentest/issues/157#issuecomment-511961254","issue_url":"https://api.github.com/repos/mcdcorp/opentest/issues/157","id":511961254,"node_id":"MDEyOklzc3VlQ29tbWVudDUxMTk2MTI1NA==","user":{"login":"adrianth","id":5209882,"node_id":"MDQ6VXNlcjUyMDk4ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/5209882?v=4","gravatar_id":"","url":"https://api.github.com/users/adrianth","html_url":"https://github.com/adrianth","followers_url":"https://api.github.com/users/adrianth/followers","following_url":"https://api.github.com/users/adrianth/following{/other_user}","gists_url":"https://api.github.com/users/adrianth/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianth/subscriptions","organizations_url":"https://api.github.com/users/adrianth/orgs","repos_url":"https://api.github.com/users/adrianth/repos","events_url":"https://api.github.com/users/adrianth/events{/privacy}","received_events_url":"https://api.github.com/users/adrianth/received_events","type":"User","site_admin":false},"created_at":"2019-07-16T19:53:10Z","updated_at":"2019-07-16T19:53:10Z","author_association":"CONTRIBUTOR","body":"The way to make your tests environment-independent is to put all the data that is specific to one environment or the other in data files that are placed in the `data-env` directories. Then, in the test file you refer to that data using the `$data()` syntax, instead of hardcoding it. The things that are typically environment-specific are:\r\n\r\n- URLs\r\n- usernames and passwords\r\n- various configuration settings\r\n\r\nYou can also create multiple directories for each environment in the `data-env` directory, to customize various aspects about running the tests (e.g. use different credentials or configuration settings).\r\n\r\nLet me know if you have any specific questions or things that are unclear."}}
other: {"actor":{"display_login":"adrianth"}}