App Center Test task: uitest (Xamarin UI Test) - xamarin.uitest

Im experiencing this issue in my post-build script.
This is my result after running my appcenter test command:
appcenter test run uitest --app "ganta4533-gmail.com/AndroidAPP" --devices b660b8e7 --app-path C:\Rajesh\Automation\zyto.maui.prototypes\NavigationComplexData\bin\Debug\net6.0-android\com.companyname.navigationcomplexdata.apk --test-series "master" --locale "en_US" --build-dir C:\Rajesh\Automation\zyto.maui.prototypes\NavigationComplexData\bin\Release\net6.0-android --uitest-tools-dir C:\Users\medur.nuget\packages\xamarin.uitest\3.2.2\tools
Error message:
Preparing tests... failed.
Error: Failed to prepare UI Test artifacts using command "test-cloud.exe prepare" with error message:
The app file was not found, please try again. If you can't work out how to fix this issue, please contact support.
Further error details: For help, please send both the reported error above and the following environment information to us by going to https://appcenter.ms/apps and opening a support ticket (using the help menu in the upper right corner of the screen)
Environment: win32
App Upload Id: ganta4533-gmail.com/AndroidAPP
Timestamp: 1667454962180
Operation: RunUITestsCommand
Exit Code: 3
User Email: ganta4533#gmail.com
User Name: ganta4533-gmail.com
User Id: 4d2033a6-fbac-4d76-9f4d-ef31b49cf63f
This is my result after running my appcenter test command:
appcenter test run uitest --app "ganta4533-gmail.com/AndroidAPP" --devices b660b8e7 --app-path C:\Rajesh\Automation\zyto.maui.prototypes\NavigationComplexData\bin\Debug\net6.0-android\com.companyname.navigationcomplexdata.apk --test-series "master" --locale "en_US" --build-dir C:\Rajesh\Automation\zyto.maui.prototypes\NavigationComplexData\bin\Release\net6.0-android --uitest-tools-dir C:\Users\medur.nuget\packages\xamarin.uitest\3.2.2\tools

Related

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

Azure DevOps App Center task error: Test chunking failed

I have lately been trying to upload our UI-tests to App Center through an Azure DevOps pipeline task and seem to always run into this error. The same error also occurs if I try to run the CLI command locally. Our project is a cross platform Xamarin.Forms app using the Xamarin.UITest test framework.
The specified error:
Test chunking failed: Specified method is not supported.
Preparing tests... failed.
Error: Cannot prepare UI Test artifacts using command: C:\Users\VssAdministrator.nuget\packages\xamarin.uitest\3.0.7\tools\test-cloud.exe prepare "D:/a/1/b/Debug/Project.dev.apk" --assembly-dir "D:\a\1\s\ Project.UITest\bin\Debug" --artifacts-dir "D:\a\1\a\AppCenterTest".
Test chunking failed, please try again. If you can't work out how to fix this issue, please contact support.
##[error]Error: D:\a_tasks\AppCenterTest\1.152.3\node_modules.bin\appcenter.cmd failed with return code: 3
Any help is most appreciated.

How to send push notification to react native android app using FCM

I am trying to build react native(0.59.9) android app with firebase push notification(FCM - ^16.2.4). I used this Doc https://github.com/evollu/react-native-fcm!
. After add google-service.json file and gradle dependencies , it gave errors.
Task :react-native-fcm:generateDebugBuildConfig FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-fcm:generateDebugBuildConfig'.
Unable to delete directory '.......\node_modules\react-native-fcm\android\build\generated\source\buildConfig\debug\com\evollu\react' after 10 attempts
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
I think you are going for a wrong component to install.
Of course first delete your current react-native-fcm component. Then it is enough to follow the steps below for installing firebase on react native:
https://rnfirebase.io/docs/v5.x.x/installation/initial-setup
and then continue with this link for configuration of android:
https://rnfirebase.io/docs/v5.x.x/installation/android
Also this link is a very good tutorial:
https://medium.com/#anum.amin/react-native-integrating-push-notifications-using-fcm-349fff071591

Ionic blank project's build failed after adding mfp-push plugin

create an blank ionic project and added mfp and mfp-push plugins. Tried to build and got this error:
BUILD FAILED in 41s
Error: cmd: Command failed with exit code 1 Error output:
C:\Users\saikmeda\TestFbSdk\platforms\android\app\src\main\java\com\ibm\mobilefirstplatform\clientsdk\cordovaplugins\push\CDVMFPPush.java:100: error: cannot access FirebaseInstanceIdService
MFPPush.getInstance().initialize(this.cordova.getActivity().getApplicationContext(), timeout);
^
class file for com.google.firebase.iid.FirebaseInstanceIdService not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 41s
The latest MFP 8.0 client side iFix for Android has been modified to work with FCM completely. The error message you see is coming because there are some changes needed in your Android project - specifically around removing GCM classes and modifying for FCM.
Follow the instructions in the link to get your project working:
http://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/handling-push-notifications/android/#migrate-to-fcm
Now, all this is required only if you use MFP's push feature. If you do not , you can remove cordova-plugin-mfp-push plugin from your project and rebuild it.

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