Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
While operating pop-ups getting error
Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --app C:\Users\ADMIN\Documents\scgt.apk --app-activity com.directory.scgt.activity.SplashScreenActivity --app-pkg com.directory.scgt --platform-name Android --platform-version 23 --automation-name Appium --device-name "vivo 1713" --log-no-color
> info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
> info: Appium REST http interface listener started on 127.0.0.1:4723
> info: [debug] Non-default server args: {"app":"C:\\Users\\ADMIN\\Documents\\scgt.apk","address":"127.0.0.1","logNoColors":true,"androidPackage":"com.directory.scgt","androidActivity":"com.directory.scgt.activity.SplashScreenActivity","deviceName":"vivo 1713","platformName":"Android","platformVersion":"23","automationName":"Appium"}
> info: Console LogLevel: debug
> info: --> POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"app":"C:\\Users\\ADMIN\\Documents\\scgt.apk","platformVersion":"6.0","appWaitPackage":"com.directory.scgt","appWaitActivity":"com.directory.scgt.Activity.SplashScreenActivity","autoGrantPermissions":"true","platformName":"Android","deviceName":"vivo 1713"},"requiredCapabilities":{}},"desiredCapabilities":{"app":"C:\\Users\\ADMIN\\Documents\\scgt.apk","platformVersion":"6.0","appWaitPackage":"com.directory.scgt","appWaitActivity":"com.directory.scgt.Activity.SplashScreenActivity","autoGrantPermissions":"true","platformName":"Android","deviceName":"vivo 1713"},"requiredCapabilities":{}}
> info: Client User-Agent string: Apache-HttpClient/4.5.2 (Java/1.8.0_121)
> warn: Converting cap autoGrantPermissions from string to boolean. This might cause unexpected behavior.
> info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : autoGrantPermissions
> info: [debug] Using local app from desired caps: C:\Users\ADMIN\Documents\scgt.apk
> info: [debug] Creating new appium session a22fa1b3-a204-4acb-b173-276d4ded09c9
> info: Starting android appium
> info: [debug] Getting Java version
> info: Java version is: 1.8.0_121
> info: [debug] Checking whether adb is present
> info: [debug] Using adb from C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe
> info: [debug] Using fast reset? true
> info: [debug] Preparing device for session
> info: [debug] Checking whether app is actually present
> info: Retrieving device
> info: [debug] Trying to find a connected android device
> info: [debug] Getting connected devices...
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe devices
> info: [debug] 1 device(s) connected
> info: Found device MJDEZP9999999999
> info: [debug] Setting device id to MJDEZP9999999999
> info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 wait-for-device
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "echo 'ready'"
> info: [debug] Starting logcat capture
> info: [debug] Getting device API level
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "getprop ro.build.version.sdk"
> info: [debug] Device is at API Level 23
> info: Device API level is: 23
> info: [debug] Extracting strings for language: default
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "getprop persist.sys.language"
> info: [debug] Current device persist.sys.language:
> info: [debug] java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "C:\Users\ADMIN\Documents\scgt.apk" "C:\Users\ADMIN\AppData\Local\Temp\com.directory.scgt"
> info: [debug] Reading strings from converted strings.json
> info: [debug] Setting language to default
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 push "C:\\Users\\ADMIN\\AppData\\Local\\Temp\\com.directory.scgt\\strings.json" /data/local/tmp
> info: [debug] Checking whether aapt is present
> info: [debug] Using aapt from C:\Users\ADMIN\AppData\Local\Android\android-sdk\build-tools\26.0.1\aapt.exe
> info: [debug] Retrieving process from manifest.
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\build-tools\26.0.1\aapt.exe dump xmltree C:\Users\ADMIN\Documents\scgt.apk AndroidManifest.xml
> info: [debug] Set app process to: com.directory.scgt
> info: [debug] Not uninstalling app since server not started with --full-reset
> info: [debug] Checking app cert for C:\Users\ADMIN\Documents\scgt.apk.
> info: [debug] executing cmd: java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar" C:\Users\ADMIN\Documents\scgt.apk
> info: [debug] App already signed.
> info: [debug] Zip-aligning C:\Users\ADMIN\Documents\scgt.apk
> info: [debug] Checking whether zipalign is present
> info: [debug] Using zipalign from C:\Users\ADMIN\AppData\Local\Android\android-sdk\build-tools\26.0.1\zipalign.exe
> info: [debug] Zip-aligning apk.
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\build-tools\26.0.1\zipalign.exe -f 4 C:\Users\ADMIN\Documents\scgt.apk C:\Users\ADMIN\AppData\Local\Temp\11788-2624-gboz98\appium.tmp
> info: [debug] MD5 for app is 97c9b14e842245e0977f1e35fce8e3d6
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "ls /data/local/tmp/97c9b14e842245e0977f1e35fce8e3d6.apk"
> info: [debug] Getting install status for com.directory.scgt
> info: [debug] Getting device API level
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "getprop ro.build.version.sdk"
> info: [debug] Device is at API Level 23
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "pm list packages -3 com.directory.scgt"
> info: [debug] App is installed
> info: App is already installed, resetting app
> info: [debug] Running fast reset (stop and clear)
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "am force-stop com.directory.scgt"
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "pm clear com.directory.scgt"
> info: [debug] Forwarding system:4724 to device:4724
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 forward tcp:4724 tcp:4724
> info: [debug] Pushing appium bootstrap to device...
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 push "C:\\Program Files (x86)\\Appium\\node_modules\\appium\\build\\android_bootstrap\\AppiumBootstrap.jar" /data/local/tmp/
> info: [debug] Pushing settings apk to device...
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 install "C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk"
> info: [debug] Pushing unlock helper app to device...
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 install "C:\Program Files (x86)\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
> info: Starting App
> info: [debug] Attempting to kill all 'uiautomator' processes
> info: [debug] Getting all processes with 'uiautomator'
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "ps 'uiautomator'"
> info: [debug] No matching processes found
> info: [debug] Running bootstrap
> info: [debug] spawning: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.directory.scgt -e disableAndroidWatchers false
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
> info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
> info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
> info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
> info: [debug] [BOOTSTRAP] [debug] Loading json...
> info: [debug] [BOOTSTRAP] [debug] json loading complete.
> info: [debug] Waking up device if it's not alive
> info: [debug] Pushing command to appium work queue: ["wake",{}]
> info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
> info: [debug] [BOOTSTRAP] [debug] Client connected
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"wake","params":{}}
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
> info: [debug] [BOOTSTRAP] [debug] Got command action: wake
> info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":true}
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window"
> info: [debug] Screen already unlocked, continuing.
> info: [debug] Pushing command to appium work queue: ["getDataDir",{}]
> info: [debug] dataDir set to: /data/local/tmp
> info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy",{"compressLayout":false}]
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
> info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
> info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"\/data\/local\/tmp"}
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"compressedLayoutHierarchy","params":{"compressLayout":false}}
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
> info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
> info: [debug] Getting device API level
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "getprop ro.build.version.sdk"
> info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":false}
> info: [debug] Device is at API Level 23
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.directory.scgt/com.directory.scgt.activity.SplashScreenActivity"
> info: [debug] Waiting for pkg "com.directory.scgt" and activity "com.directory.scgt.Activity.SplashScreenActivity" to be focused
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: C:\Users\ADMIN\AppData\Local\Android\android-sdk\platform-tools\adb.exe -s MJDEZP9999999999 shell "dumpsys window windows"
> error: com.directory.scgt/.Activity.SplashScreenActivity never started. Current: com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity
> info: [debug] Stopping logcat capture
> info: [debug] Logcat terminated with code null, signal SIGTERM
> info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
> info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
> info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"OK, shutting down"}
> info: [debug] [UIAUTOMATOR STDOUT] close [socket][/127.0.0.1:4724]
> info: [debug] [BOOTSTRAP] [debug] Closed client connection
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
> info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
> info: [debug] [UIAUTOMATOR STDOUT] Time: 22.833
> info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
> info: [debug] UiAutomator shut down normally
> info: [debug] Cleaning up android objects
> info: [debug] Cleaning up appium session
> error: Failed to start an Appium session, err was: Error: com.directory.scgt/.Activity.SplashScreenActivity never started. Current: com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity
> info: [debug] Error: com.directory.scgt/.Activity.SplashScreenActivity never started. Current: com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity
> at [object Object].<anonymous> (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1314:12)
> at [object Object].<anonymous> (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1258:7)
> at [object Object].<anonymous> (C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:180:9)
> at ChildProcess.exithandler (child_process.js:742:7)
> at ChildProcess.emit (events.js:110:17)
> at maybeClose (child_process.js:1016:16)
> at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
> info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: com.directory.scgt/.Activity.SplashScreenActivity never started. Current: com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity)","origValue":"com.directory.scgt/.Activity.SplashScreenActivity never started. Current: com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity"},"sessionId":null}
> info: <-- POST /wd/hub/session 500 38138.540 ms - 476
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment