LambdaTest Logo

LambdaTest fastlane plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin to upload app to LambdaTest. To get started with fastlane-plugin-lambdatest, add it to your project by running:

fastlane add_plugin lambdatest

Example

In order to use this plugin first obtain your LT_USERNAME and LT_ACCESS_KEY from your account,configure the plugin add below action in your Fastfile.

upload_to_lambdatest(
    lt_username: ENV["LT_USERNAME"],
    lt_access_key: ENV["LT_ACCESS_KEY"],
    file_path: "app_file_path"
  )

OR you can also use custom_id

upload_to_lambdatest(
    lt_username: ENV["LT_USERNAME"],
    lt_access_key: ENV["LT_ACCESS_KEY"],
    file_path: "app_file_path",
    custom_id:"984792"
  )

Check out the example Fastfile to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins and bundle exec fastlane test.

Once the app is uploaded , the app_url of the app will be stored in an environment variable, "APP_URL" and it can be accessed in your tests in same lane in the following way :

String app = System.getenv("APP_URL"); // Get app url from environment variable.
capabilities.setCapability("app", app); // Add app url to driver capability.

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

About LambdaTest

LambdaTest is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your selenium automation testing to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.