Appium giving error when opening app with robot framework - robotframework

So here is my code I see the app open in the emulator then close and I still get this error
** Variables **
${REMOTE_URL} http://localhost:4723/wd/hub
${PLATFORM_NAME_ANDROID} Android
${DEVICE_NAME_ANDROID} emulator-5554
${APP_ANDROID} /Users/william_flow/Documents/Code/xxx/App/base.apk
${APP_PACKAGE} com.xxx.android
${AUTOMATION_NAME} appium
${RESET_OFF} true
${AppAct} com.xxx.android.flavor.full.activities.HomeActivity
** Test Cases *
Open Android app
Open Application ${REMOTE_URL} app=${APP_ANDROID}
automationName=${AUTOMATION_NAME}
platformName=${PLATFORM_NAME_ANDROID}
deviceName=${DEVICE_NAME_ANDROID} appPackage=${APP_PACKAGE}
noReset=${RESET_OFF}
sleep 5s
I run it I see it run in my simulator and it Fails saying
Open Android app | FAIL |
WebDriverException: Message: An unknown server-side error occurred
while processing the command. Original error: Cannot start the
‘com.xxx.android’ application. Visit
https://github.com/appium/appium/blob/master/docs/en/writing-running-
appium/android/activity-startup.md for troubleshooting. Original
error: ‘com.xxx.android.activities.MainActivity’ or
‘com.xxx.android.com.xxx.android.activities.MainActivity’ never
started. Visit
https://github.com/appium/appium/blob/master/docs/en/writing-running-
appium/android/activity-startup.md for troubleshooting
so what am I doing wrong?

I have modfied your code, so that it becomes more redable and get executed easily
*** Settings ***
Documentation This script starts apps on two phones
Library AppiumLibrary
Library Collections
*** Variables ***
${REMOTE_URL} http://localhost:4723/wd/hub
${PLATFORM_NAME_ANDROID} Android
${DEVICE_NAME_ANDROID} emulator-5554
${APP_ANDROID} /Users/william_flow/Documents/Code/xxx/App/base.apk
${APP_PACKAGE} com.xxx.android
${AUTOMATION_NAME} appium
${RESET_OFF} true
${AppAct} com.xxx.android.flavor.full.activities.HomeActivity
*** Test Cases ***
First test case
Open Android app
*** Keywords ***
Open Android app
Open Application ${REMOTE_URL} app=${APP_ANDROID} automationName=${AUTOMATION_NAME} platformName=${PLATFORM_NAME_ANDROID} deviceName=${DEVICE_NAME_ANDROID} appPackage=${APP_PACKAGE} noReset=${RESET_OFF} appActivity=${AppAct}
sleep 5s
Couple of Key points
appActivity was missing
Assuming appium server is running at 4723
Assuming Appium library is installed
You may also want to have a look on this link Automating mobile App using Robot Framework and Appium
If you can address above 4 points , your error should get resolved!!

Related

Error Occurred in apple silicon chip while integrating firebase with flutter ,Some one can help me to clear this error

Xcode build done. 4.8s
Failed to build iOS app
Error output from Xcode build:
↳
objc[15838]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x207666c10) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x113fe82b8). One of the two will be used. Which one is undefined.
objc[15838]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x207666c60) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x113fe8308). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
3
/Users/jp/flutterProjects/flutter_authen_mac/ios/Flutter/Debug.xcconfig:3:1: error: could not find included file 'Pods-Runner.debug.xcconfig' in search paths
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.

Flutter trying to installing packages

No matter which package I tried to install when running on iOS simulator get an error the same no matter which package.
fatal error: module 'name of the module I'm trying' not found
Is a new MacBook Air, so I can't emulate Android to see if is the same.
Been days stuck here
This is the output:
Failed to build iOS app Error output from Xcode build: ↳
objc[94975]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1faf938f0) and ?? (0x11acac2b8). One of the two will be
used. Which one is undefined.
objc[94975]: Class AMSupportURLSession is implemented in both ?? (0x1faf93940) and ?? (0x11acac308). One of the two will be used. Which
one is undefined.
** BUILD FAILED **
Xcode's output: ↳
/Users/rafy/Desktop/Flutter_App_with_Android_Studio/cte_baberia/ios/Runner/GeneratedPluginRegistrant.m:10:9:
fatal error: module 'firebase_auth' not found
#import firebase_auth;
~~~~~~~^~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To
resolve this, select a development team in the Runner editor. (in
target 'Runner' from project 'Runner')
Could not build the application for the simulator. Error launching
application on iPhone 12 Pro Max.
Please run a flutter clean and then post the outputs when you run these commands:
pub get
and
flutter build ios

Workbench target simulator

I m trying to launch a small test project using workbench on the target simulator. The project s being build successfuly but it fails to run.
The error message that i had was" failed to execute launch step" , and the possible cause would " failed to launch target server for connection 'vxsim'(registery localhost) ".
Anyone could hepl i will be grateful.
Thanks.

VS TACO error "Cannot find the app installed on the device" on iOS device

I'm using VS2015 Update 2 with TACO Update 9 and I'm attempting to debug an application on a iPhone 6S (iOS 9.3.1) attached to my Windows computer. The remote build is successful but I get the following messages when it attempts to debug the app:
2>------ Deploy started: Project: xyz, Configuration: Debug iOS ------
2>Found iTunes version: 12.3.0.44
2>Uninstalling app ID: com.bob.xyz.
2>Successfully installed .ipa file: D:\Documents\Projects\xyz\xyz\bin\iOS\Debug\xyz.ipa.
2>Starting idevicedebugserverproxy.exe at port 3000.
2>Cannot find the app installed on the device. Check that the device is connected, awake, and unlocked.
2>Deployment failed.
When I look on the device, I do not see the application. Are there steps I can take to further debug what might be causing the failure?
Make sure your solution is configured for Debug build and not Release.

ionic build ios fails after using development push notification error code 65 for command

Hello guys i was working on a Ionic guide to test push notification for dev. after following the tutorial on
http://docs.ionic.io/docs/push-quick-start
i tried to push notification and it does show up in the browser with kind of alert. After that i tried to build for ios. Is this error because it is under development? or it requires full push for ios setup ? like adding the certificates and all... If you guys know please guide me. Thank You.
Here is the error
** BUILD FAILED **
The following build commands failed:
CompileC build/example.build/Debug-iphonesimulator/example.build/Objects-normal/i386/MainViewController.o example/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR building one of the platforms:
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/wangeltamang/Documents/est_ionic/platforms/ios/cordova/build-debug.xcconfig,-project,example.xcodeproj,ARCHS=i386,-target,example,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/wangeltamang/Documents/est_ionic/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/wangeltamang/Documents/est_ionic/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project
Error:
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/wangeltamang/Documents/est_ionic/platforms/ios/cordova/build-debug.xcconfig,-project,example.xcodeproj,ARCHS=i386,-target,example,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/wangeltamang/Documents/est_ionic/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/wangeltamang/Documents/est_ionic/platforms/ios/build/sharedpch

Resources