Skip to content

Sample repo to run app automation on real device on LambdaTest.

Notifications You must be signed in to change notification settings

Devansh013/LT-appium-nodejs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LT-Appium-Javascript

Sample repo to run app automation on real device on LambdaTest.

Step 1: Upload your Application

Upload 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. Here is an example cURL request to upload your app using our REST API:

curl -u "username:access_key" \
--location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \
--form 'name="Android_App"' \
--form 'appFile=@"/Users/useraccount/Downloads/proverbial_android.apk"'
curl -u "username:access_key" '
-X POST "https://manual-api.lambdatest.com/app/upload/realDevice" '
-F "appFile=@"/Users/useraccount/Downloads/proverbial_android.apk""

Step 2: Set Environment Variables

Make sure you have your LambdaTest credentials with you to run test automation scripts on LambdaTest Selenium Grid. You can obtain these credentials from the LambdaTest Automation Dashboard or through LambdaTest Profile. Set LambdaTest Username and Access Key in environment variables.

For Linux/macOS:

export LT_USERNAME="YOUR_USERNAME" export LT_ACCESS_KEY="YOUR ACCESS KEY"

For Windows:

set LT_USERNAME="YOUR_USERNAME" set LT_ACCESS_KEY="YOUR ACCESS KEY"

Step 3: Execute your test case

Run the following command in the directory where your project has been saved to execute your build.

Android

node android.js

iOS

node ios.js

About

Sample repo to run app automation on real device on LambdaTest.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%