How to use version_code method in ATX

Best Python code snippet using ATX Github


Full Screen

1import random2APP_VERSION = ""3VERSION_CODE = "208061712"4DEVICES = {5 "one_plus_7": {6 "app_version": APP_VERSION,7 "android_version": "29",8 "android_release": "10.0",9 "dpi": "420dpi",10 "resolution": "1080x2340",11 "manufacturer": "OnePlus",12 "device": "GM1903",13 "model": "OnePlus7",14 "cpu": "qcom",15 "version_code": VERSION_CODE,16 },17 "one_plus_3": {18 "app_version": APP_VERSION,19 "android_version": "28",20 "android_release": "9.0",21 "dpi": "420dpi",22 "resolution": "1080x1920",23 "manufacturer": "OnePlus",24 "device": "ONEPLUS A3003",25 "model": "OnePlus3",26 "cpu": "qcom",27 "version_code": VERSION_CODE,28 },29 # Released on March 201630 "samsung_galaxy_s7": {31 "app_version": APP_VERSION,32 "android_version": "26",33 "android_release": "8.0",34 "dpi": "640dpi",35 "resolution": "1440x2560",36 "manufacturer": "samsung",37 "device": "SM-G930F",38 "model": "herolte",39 "cpu": "samsungexynos8890",40 "version_code": VERSION_CODE,41 },42 # Released on January 201743 "huawei_mate_9_pro": {44 "app_version": APP_VERSION,45 "android_version": "24",46 "android_release": "7.0",47 "dpi": "640dpi",48 "resolution": "1440x2560",49 "manufacturer": "HUAWEI",50 "device": "LON-L29",51 "model": "HWLON",52 "cpu": "hi3660",53 "version_code": VERSION_CODE,54 },55 # Released on February 201856 "samsung_galaxy_s9_plus": {57 "app_version": APP_VERSION,58 "android_version": "28",59 "android_release": "9.0",60 "dpi": "640dpi",61 "resolution": "1440x2560",62 "manufacturer": "samsung",63 "device": "SM-G965F",64 "model": "star2qltecs",65 "cpu": "samsungexynos9810",66 "version_code": VERSION_CODE,67 },68 # Released on November 201669 "one_plus_3t": {70 "app_version": APP_VERSION,71 "android_version": "26",72 "android_release": "8.0",73 "dpi": "380dpi",74 "resolution": "1080x1920",75 "manufacturer": "OnePlus",76 "device": "ONEPLUS A3010",77 "model": "OnePlus3T",78 "cpu": "qcom",79 "version_code": VERSION_CODE,80 },81 # Released on April 201682 "lg_g5": {83 "app_version": APP_VERSION,84 "android_version": "23",85 "android_release": "6.0.1",86 "dpi": "640dpi",87 "resolution": "1440x2392",88 "manufacturer": "LGE/lge",89 "device": "RS988",90 "model": "h1",91 "cpu": "h1",92 "version_code": VERSION_CODE,93 },94 # Released on June 201695 "zte_axon_7": {96 "app_version": APP_VERSION,97 "android_version": "23",98 "android_release": "6.0.1",99 "dpi": "640dpi",100 "resolution": "1440x2560",101 "manufacturer": "ZTE",102 "device": "ZTE A2017U",103 "model": "ailsa_ii",104 "cpu": "qcom",105 "version_code": VERSION_CODE,106 },107 # Released on March 2016108 "samsung_galaxy_s7_edge": {109 "app_version": APP_VERSION,110 "android_version": "23",111 "android_release": "6.0.1",112 "dpi": "640dpi",113 "resolution": "1440x2560",114 "manufacturer": "samsung",115 "device": "SM-G935",116 "model": "hero2lte",117 "cpu": "samsungexynos8890",118 "version_code": VERSION_CODE,119 },120}...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:


You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run ATX automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?