{"id":22362813,"url":"https://github.com/lambdatest/lt-appium-nodejs","last_synced_at":"2025-07-30T15:30:32.470Z","repository":{"id":36994202,"uuid":"446345872","full_name":"LambdaTest/LT-appium-nodejs","owner":"LambdaTest","description":"Run Node.js and Appium scripts on LambdaTest automation cloud. A sample repo to help you run Node.js framework based test scripts in parallel with LambdaTest","archived":false,"fork":false,"pushed_at":"2024-11-14T09:39:21.000Z","size":29,"stargazers_count":8,"open_issues_count":0,"forks_count":19,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-14T10:32:09.674Z","etag":null,"topics":["android-automation","app-automation","appium","appium-node","ios-automation","javascript","javascript-nodejs","mobile-app-testing"],"latest_commit_sha":null,"homepage":"https://www.lambdatest.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LambdaTest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-10T08:50:08.000Z","updated_at":"2024-11-14T09:39:25.000Z","dependencies_parsed_at":"2023-01-17T12:45:35.942Z","dependency_job_id":null,"html_url":"https://github.com/LambdaTest/LT-appium-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FLT-appium-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FLT-appium-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FLT-appium-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LambdaTest%2FLT-appium-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LambdaTest","download_url":"https://codeload.github.com/LambdaTest/LT-appium-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228154025,"owners_count":17877704,"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":["android-automation","app-automation","appium","appium-node","ios-automation","javascript","javascript-nodejs","mobile-app-testing"],"created_at":"2024-12-04T17:11:51.942Z","updated_at":"2024-12-04T17:11:57.011Z","avatar_url":"https://github.com/LambdaTest.png","language":"JavaScript","readme":"# Node.js With Appium ![pw](https://img.shields.io/badge/Node.js-339933?style=for-the-badge\u0026logo=nodedotjs\u0026logoColor=white)\n\n\u003cp align=\"center\"\u003e\n\u003cimg height=\"500\" src=\"https://user-images.githubusercontent.com/95698164/171863863-8f793cf6-62e9-463c-a4e4-91b340dd6728.png\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.lambdatest.com/blog/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs\" target=\"_bank\"\u003eBlog\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.lambdatest.com/support/docs/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs\" target=\"_bank\"\u003eDocs\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.lambdatest.com/learning-hub/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs\" target=\"_bank\"\u003eLearning Hub\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.lambdatest.com/newsletter/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs\" target=\"_bank\"\u003eNewsletter\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.lambdatest.com/certifications/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs\" target=\"_bank\"\u003eCertifications\u003c/a\u003e\n  \u0026nbsp; \u0026#8901; \u0026nbsp;\n  \u003ca href=\"https://www.youtube.com/c/LambdaTest\" target=\"_bank\"\u003eYouTube\u003c/a\u003e\n\u003c/p\u003e\n\u0026emsp;\n\u0026emsp;\n\u0026emsp;\n\n_Appium is a tool for automating native, mobile web, and hybrid applications on iOS, Android, and Windows platforms. It supports iOS native apps written in Objective-C or Swift and Android native apps written in Java or Kotlin. It also supports mobile web apps accessed using a mobile browser (Appium supports Safari on iOS and Chrome or the built-in 'Browser' app on Android). Perform Appium automation tests on [LambdaTest's online cloud](https://www.lambdatest.com/mobile-app-testing/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs)._\n\n_Learn the basics of [Appium testing on the LambdaTest platform](https://www.lambdatest.com/support/docs/getting-started-with-appium-testing/)._\n\n[\u003cimg height=\"53\" width=\"200\" src=\"https://user-images.githubusercontent.com/70570645/171866795-52c11b49-0728-4229-b073-4b704209ddde.png\"\u003e](https://accounts.lambdatest.com/register)\n\n## Table of Contents\n\n- [Pre-requisites](#pre-requisites)\n- [Run Your First Test](#run-your-first-test)\n- [Executing The Tests](#executing-the-tests)\n\n## Pre-requisites\n\nBefore you can start performing App automation testing with Appium, you would need to follow these steps:\n\n- Download and install **NodeJS**. You should be having **NodeJS v6** or newer. Click [here](https://nodejs.org/en/) to download.\n- Make sure you are using the latest version of **JavaScript**.\n- Install **npm** from the official website by clicking [here](https://www.npmjs.com/).\n- Note: WD only works with appium 1 for appium 2 please use WDIO https://github.com/admc/wd\n\n### Clone The Sample Project\n\nClone the LambdaTest’s :link: [LT-appium-nodejs](https://github.com/LambdaTest/LT-appium-nodejs) repository and navigate to the code directory as shown below:\n\n```bash\ngit clone https://github.com/LambdaTest/LT-appium-nodejs\ncd LT-appium-nodejs\n```\n\n### Setting Up Your Authentication\n\nMake sure you have your LambdaTest credentials with you to run test automation scripts on LambdaTest. To obtain your access credentials, [purchase a plan](https://billing.lambdatest.com/billing/plans/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs) or access the [Automation Dashboard](https://appautomation.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs).\n\nSet LambdaTest `Username` and `Access Key` in environment variables.\n\n**For Linux/macOS:**\n\n```bash\nexport LT_USERNAME=\"YOUR_LAMBDATEST_USERNAME\" \\\nexport LT_ACCESS_KEY=\"YOUR_LAMBDATEST_ACCESS_KEY\"\n```\n\n**For Windows:**\n\n```powershell\nset LT_USERNAME=\"YOUR_LAMBDATEST_USERNAME\" `\nset LT_ACCESS_KEY=\"YOUR_LAMBDATEST_ACCESS_KEY\"\n```\n\n### Upload Your Application\n\nUpload your ___iOS___ application (.ipa file) or ___android___ application (.apk file) to the LambdaTest servers using our __REST API__. You need to provide your __Username__ and __AccessKey__ in the format `Username:AccessKey` in the __cURL__ command for authentication. Make sure to add the path of the __appFile__ in the cURL request. Here is an example cURL request to upload your app using our REST API:\n\n**Using App File:**\n\n**For Linux/macOS:**\n\n```bash\ncurl -u \"YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY\" \\\n--location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \\\n--form 'name=\"Android_App\"' \\\n--form 'appFile=@\"/Users/macuser/Downloads/proverbial_android.apk\"'\n```\n\n**For Windows:**\n\n```powershell\ncurl -u \"YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY\" -X POST \"https://manual-api.lambdatest.com/app/upload/realDevice\" -F \"appFile=@\"/Users/macuser/Downloads/proverbial_android.apk\"\"\n```\n\n**Using App URL:**\n\n**For Linux/macOS:**\n\n```bash\ncurl -u \"YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY\" \\\n--location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \\\n--form 'name=\"Android_App\"' \\\n--form 'url=\"https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk\"'\n```\n\n**For Windows:**\n\n```powershell\ncurl -u \"YOUR_LAMBDATEST_USERNAME:YOUR_LAMBDATEST_ACCESS_KEY\" -X POST \"https://manual-api.lambdatest.com/app/upload/realDevice\" -d \"{\"url\":\"https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk\",\"name\":\"sample.apk\"}\"\n```\n\n\u003e **Tip:**\n\n\u003e - If you do not have any __.apk__ or __.ipa__ file, you can run your sample tests on LambdaTest by using our sample :link: [Android app](https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_android.apk) or sample :link: [iOS app](https://prod-mobile-artefacts.lambdatest.com/assets/docs/proverbial_ios.ipa).\n\u003e - Response of above cURL will be a **JSON** object containing the `App URL` of the format - \u003clt://APP123456789123456789\u003e and will be used in the next step.\n\n## Run Your First Test\n\nOnce you are done with the above-mentioned steps, you can initiate your first JUnit test on LambdaTest.\n\nTest Scenario: Check out [Android.js](https://github.com/LambdaTest/LT-appium-nodejs/blob/master/Android.js) file to view the sample test script for android and [iOS.js](https://github.com/LambdaTest/LT-appium-nodejs/blob/master/IOS.js) for iOS.\n\n### Configuring Your Test Capabilities\n\nYou can update your custom capabilities in the scripts. In our sample script, we are passing platform name, platform version, device name and app url (generated earlier) along with other capabilities like build name and test name via capabilities object. The capabilities object in the sample code for a single test are defined as:\n\n**iOS:**\n\n```javascript\ndesired_capabilities = {\n  deviceName: \"iPhone 12\",\n  platformVersion: \"14\",\n  platformName: \"iOS\",\n  isRealMobile: true,\n  app: \"lt://\", //Enter the app_url here\n  visual: true,\n  video: true,\n  build: \"NodeJS Vanilla - iOS\",\n  name: \"Sample Test - NodeJS\",\n};\n```\n\n**Android:**\n\n```javascript\ndesired_capabilities = {\n  deviceName: \"Galaxy S20\",\n  platformVersion: \"11\",\n  platformName: \"android\",\n  isRealMobile: true,\n  app: \"lt://\", //Enter the app_url here\n  visual: true,\n  video: true,\n  build: \"NodeJS Vanilla - Android\",\n  name: \"Sample Test - NodeJS\",\n};\n```\n\n**Info Note:**\n\n- You must add the generated __APP_URL__ to the `\"app\"` capability in the config file.\n- You can generate capabilities for your test requirements with the help of our inbuilt :link: __[Capabilities Generator tool](https://www.lambdatest.com/capabilities-generator/beta/index.html)__. A more Detailed Capability Guide is available [here :page_facing_up:](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/) .\n\n## Executing The Tests\n\nInstalling depencies:\n\n```bash\nnpm i wd\n```\n\nExecute the following command to run your test on LambdaTest platform:\n\n**Android:**\n\n```bash\nnode Android.js\n```\n\n**IOS:**\n\n```bash\nnode IOS.js\n```\n\n__Info:__ Your test results would be displayed on the test console (or command-line interface if you are using terminal/cmd) and on the :link: [LambdaTest App Automation Dashboard](https://appautomation.lambdatest.com/build/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs).\n\n## Additional Links\n\n- [Advanced Configuration for Capabilities](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/)\n- [How to test locally hosted apps](https://www.lambdatest.com/support/docs/testing-locally-hosted-pages/)\n- [How to integrate LambdaTest with CI/CD](https://www.lambdatest.com/support/docs/integrations-with-ci-cd-tools/)\n\n## Documentation \u0026 Resources :books:\n\nVisit the following links to learn more about LambdaTest's features, setup and tutorials around test automation, mobile app testing, responsive testing, and manual testing.\n\n- [LambdaTest Documentation](https://www.lambdatest.com/support/docs/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs)\n- [LambdaTest Blog](https://www.lambdatest.com/blog/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs)\n- [LambdaTest Learning Hub](https://www.lambdatest.com/learning-hub/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs)\n\n## LambdaTest Community :busts_in_silhouette:\n\nThe [LambdaTest Community](https://community.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs) allows people to interact with tech enthusiasts. Connect, ask questions, and learn from tech-savvy people. Discuss best practises in web development, testing, and DevOps with professionals from across the globe 🌎\n\n## What's New At LambdaTest ❓\n\nTo stay updated with the latest features and product add-ons, visit [Changelog](https://changelog.lambdatest.com/)\n\n## About LambdaTest\n\n[LambdaTest](https://www.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs) is a leading test execution and orchestration platform that is fast, reliable, scalable, and secure. It allows users to run both manual and automated testing of web and mobile apps across 3000+ different browsers, operating systems, and real device combinations. Using LambdaTest, businesses can ensure quicker developer feedback and hence achieve faster go to market. Over 500 enterprises and 1 Million + users across 130+ countries rely on LambdaTest for their testing needs.\n\n### Features\n\n- Run Selenium, Cypress, Puppeteer, Playwright, and Appium automation tests across 3000+ real desktop and mobile environments.\n- Real-time cross browser testing on 3000+ environments.\n- Test on Real device cloud\n- Blazing fast test automation with HyperExecute\n- Accelerate testing, shorten job times and get faster feedback on code changes with Test At Scale.\n- Smart Visual Regression Testing on cloud\n- 120+ third-party integrations with your favorite tool for CI/CD, Project Management, Codeless Automation, and more.\n- Automated Screenshot testing across multiple browsers in a single click.\n- Local testing of web and mobile apps.\n- Online Accessibility Testing across 3000+ desktop and mobile browsers, browser versions, and operating systems.\n- Geolocation testing of web and mobile apps across 53+ countries.\n- LT Browser - for responsive testing across 50+ pre-installed mobile, tablets, desktop, and laptop viewports\n\n[\u003cimg height=\"53\" width=\"200\" src=\"https://user-images.githubusercontent.com/70570645/171866795-52c11b49-0728-4229-b073-4b704209ddde.png\"\u003e](https://accounts.lambdatest.com/register)\n\n## We are here to help you :headphones:\n\n- Got a query? we are available 24x7 to help. [Contact Us](mailto:support@lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs)\n- For more info, visit - [LambdaTest](https://www.lambdatest.com/?utm_source=github\u0026utm_medium=repo\u0026utm_campaign=LT-appium-nodejs)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Flt-appium-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flambdatest%2Flt-appium-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flambdatest%2Flt-appium-nodejs/lists"}