{"id":18325803,"url":"https://github.com/macintoshplus/behat-lambdatest-extension","last_synced_at":"2025-04-06T00:31:23.049Z","repository":{"id":41954724,"uuid":"341329243","full_name":"macintoshplus/behat-lambdatest-extension","owner":"macintoshplus","description":"Behat and Mink Extension for Lambdatest SaaS","archived":false,"fork":false,"pushed_at":"2023-04-28T14:16:59.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T14:22:48.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/macintoshplus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-22T20:32:02.000Z","updated_at":"2022-02-04T07:36:11.000Z","dependencies_parsed_at":"2022-08-12T00:31:08.821Z","dependency_job_id":null,"html_url":"https://github.com/macintoshplus/behat-lambdatest-extension","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macintoshplus%2Fbehat-lambdatest-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macintoshplus%2Fbehat-lambdatest-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macintoshplus%2Fbehat-lambdatest-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macintoshplus%2Fbehat-lambdatest-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macintoshplus","download_url":"https://codeload.github.com/macintoshplus/behat-lambdatest-extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419597,"owners_count":20936009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T19:04:25.982Z","updated_at":"2025-04-06T00:31:22.058Z","avatar_url":"https://github.com/macintoshplus.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lambdatest integration for Behat with Mink Selenium2 Extension\n\nThis Behat extension provide a Mink Selenium2 Extension integration for [Lambdatest SaaS](https://lambdatest.com).\n\nTested browser :\n\n* Firefox 88+\n* Chrome 90+\n* Safari 13+\n\n## Installation\n\nRun this command to add this extension on your projet:\n\n```shell\n$ php composer require --dev macintoshplus/behat-lambdatest-extension\n```\n\n## Configuration\n\nIn your `behat.yml.dist` file, enable this extension\n\n```yaml\ndefault:\n    extensions:\n      Macintoshplus\\Lambdatest\\LambdatestExtension: ~\n```\n\nConfigure the Lambdatest Mink extension in `behat.yml.dist` file:\n\n```yaml\ndefault:\n  extensions:\n      Behat\\MinkExtension:\n        lambdatest:\n          # You can use the LT_USERNAME and LT_USERKEY environment variables instead of this keys:\n          user: your_email@domain.tld # Your Lambdatest login\n          key: xxxxx # Your Lambdatest key available here: https://accounts.lambdatest.com/detail/profile\n          restart_session_between_scenario: false #If false, run all scenario in one session. If true, close and open a new session for each scenario\n          # The rest of key are the same as Mink Extension\n          wd_host: https://hub.lambdatest.com/wd/hub # The URL of Selenium2 Hub\n          capabilities:\n              name: Behat test suite # Define the name to change the Lambdatest session name or prefix if `restart_session_between_scenario` is true\n              # The rest of key are the same as Mink Extension\n              browser: firefox # The browser name\n              marionette: true\n              extra_capabilities:\n                resolution: 1920x1080\n                platform: windows10\n                browserName: firefox\n                version: latest\n\n                # If you need select file to upload in your tests\n                # Upload the files before run test. See: https://www.lambdatest.com/support/docs/upload-files-using-lambdatest/\n                # Define below all files names needed in your test.\n                'lambda:userFiles': [file_name_uploaded_to_lamdatest.zip, file_2.zip]\n\n                #If you need use the Lambdatest tunnel\n                tunnel: true\n                tunnelName: test_tunnel\n```\n\nSee this [documentation](https://www.lambdatest.com/support/docs/selenium-automation-capabilities/) to customize your capabilities configuration.\n\n### Credential priority\n\nWhen `LT_USERNAME` and `LT_USERKEY` environment variable are defined, they are used.\n\nOtherwise, the values provided into `behat.yml.dist` file are used. \n\n## Define your credential\n\nTo define environment variables, on Windows, open a `cmd` window and run these commands after change the value with your personnal information:\n\n```shell\nset LT_USERNAME=user@domain.tld\nset LT_USERKEY=xxxxxxxxxx\n```\n\nTo define environment variables, on Unix, open a `terminal` window and run these commands after change the value with your personnal information:\n\n```shell\nexport LT_USERNAME=user@domain.tld\nexport LT_USERKEY=xxxxxxxxxx\n```\n\n## Run Behat\n\nRun Behat command, and view the result on you Lambdatest account:\n\n```shell\nvendor/bin/behat --tags=@javascript\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacintoshplus%2Fbehat-lambdatest-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacintoshplus%2Fbehat-lambdatest-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacintoshplus%2Fbehat-lambdatest-extension/lists"}