tvarchive / optimusTemplate

This is a cucumber jvm implementation template using the optimus mobile automation framework. If you like it, star it, help spread the word.
http://docs.testvagrant.com
66 stars 23 forks source link

Incorrect version of the device is written into DB #7

Closed ochubey closed 6 years ago

ochubey commented 6 years ago

Incorrect version of the devices is written into the DB. What I get into the console:

Executing MongoMain
Getting started with mongo main
Running command ---- adb devices -l
command output -- List of devices attached
udid_of_first_device       device usb:337641472X product:zerofltexx model:SM_G920F device:zeroflte
udid_of_second_device       device usb:336592896X product:angler model:Nexus_6P device:angler
Running command ---- adb -s udid_of_first_device shell getprop ro.build.version.release
command output -- SM-G920F
5.1.1
Running command ---- adb -s udid_of_second_device shell getprop ro.build.version.release
command output -- Nexus 6P
6.0.1

MongoClient:1378389093

what is saved into the DB:

{
    "_id" : ObjectId("598dcbf502dd590a44692a24"),
    "platform" : "ANDROID",
    "deviceName" : "SM-G920F",
    "status" : "Available",
    "platformVersion" : "6.0.1", //but should be 5.1.1
    "runsOn" : "DEVICE",
    "udid" : "udid_of_first_device",
    "buildId" : ObjectId("598dcbf402dd590a44692a23"),
}
{
    "_id" : ObjectId("598dcbf502dd590a44692a25"),
    "platform" : "ANDROID",
    "deviceName" : "Nexus 6P",
    "status" : "Available",
    "platformVersion" : "6.0.1",
    "runsOn" : "DEVICE",
    "udid" : "udid_of_second_device",
    "buildId" : ObjectId("598dcbf402dd590a44692a23"),
}
KrishnB commented 6 years ago

@ochubey the issue is resolved in the latest optimus version can you please upgrade your build.gradle for below dependencies. OptimusGradle - 2.1 optimus - 2.1.2 StepDefs- 1.0.4

This should resolve the issue.

ochubey commented 6 years ago

Issue resolved. Thank you for support!