Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NotificationsYou must be signed in to change notification settings

LambdaTest/LT-appium-java-testng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Below is the curl request to upload the app for automation

curl --location --request POST 'https://manual-api.lambdatest.com/app/upload/realDevice' \--header 'Authorization: Basic <ENTER_BASIC_AUTH_TOKEN_HERE>' \--form 'name="lambda1"' \--form 'appFile=@"/path/to/file"'

Step-1: Upload your application

curl -u"YOUR_LAMBDATEST_USERNAME":"YOUR_LAMBDATEST_ACCESS_KEY" \--location --request POST'https://manual-api.lambdatest.com/app/upload/realDevice' \--form'name="Android_App"' \--form'appFile=@"/Users/macuser/Downloads/proverbial_android.apk"'

Note:

  • If you do not have any.apk or.ipa file, you can run your sample tests on LambdaTest by using our sampleAndroid app or sampleiOS app.
  • Response of above cURL will be aJSON object containing theApp URL of the format - lt://APP123456789123456789 and will be used in the next step.

Step 2: Write Your Automation Script

Write your automation script in the client language of your choice from the onessupported by Appium. In the sample automation script in Java for the sample app downloaded above. Ensure to update theapp_url,username andaccesskey in the below code.

Step 3: Execute Your Test Case

Debug and run your code. Run iOSApp.java or AndroidApp.java in your editor.

Android:

mvn test -P android-single
mvn test -P android-parallel

IOS:

mvn test -P ios-single
mvn test -P ios-parallel

Step 4: View Test Execution

Once you have run your tests, you can view the test execution along with logs. You will be able to see the test cases passing or failing. You can view the same atLambdaTest Automation.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp