AWS device farm cannot find .xctest in ipa - android

I am using aws device farm to test my iOS and android application.
It asks for the .ipa for xctest and xctestUI test cases which I provide by compiling them in xcode and exporting them under adhoc distribution.
Every time I drag and drop it I get that either the plugin folder is missing (fo UI testing) or that the .xctest directory is missing.
Is there a way to have everything included when using xcode to export?

Related

How to pull the apk file from appcenter and get it installed on android device instead of manually downloading and storing in local and installing

For automation testing purposes presently I am downloading the latest build from appcenter and storing it in my local. And in the script I am getting it installed on the android device. But this will not workout when I want to run the script through pipeline.
Is there any way to get the apk downloaded directly from appcenter and have it installed into the device.
App Center is a continuous integration, delivery, and testing solution for Android, iOS, macOS, and Windows apps. App Center let developers to ship apps faster and with more confidence by automating the development life cycle.
You can't directly download from app center and install it to android device. But you can upload your application binary package to app center and distribute it. You can distribute releases to individual testers or groups of testers. Azure DevOps uses the App Center Distribute Task for this.
Check Build, test, and deploy Android apps - Azure Pipelines document for more information.
This might be helpful in your case if you would like to upload the build from app center and run your test on real device or simulator:
https://www.browserstack.com/docs/app-automate/appium/integrations/app-center

Can share ipa file to install locally on iphone

I used flutter for both Android and IOS. I want to share both applications to the customer for testing purpose. I can export apk file by the following command for Android. I am using Android Studio.
flutter build android --profile
I can get the apk file. I just share this apk to the client. He can install it on his phone without any requirement.
After I run this command in flutter
flutter build ios --profile
It showed the error message
No valid code signing certificates were found
You can connect to your Apple Developer account by signing in with your Apple ID
in Xcode and create an iOS Development Certificate as well as a Provisioning
Profile for your project by:
1- Open the Flutter project's Xcode target with
open ios/Runner.xcworkspace
2- Select the 'Runner' project in the navigator then the 'Runner' target
in the project settings
3- In the 'General' tab, make sure a 'Development Team' is selected.
You may need to:
- Log in with your Apple ID in Xcode first
- Ensure you have a valid unique Bundle ID
- Register your device with your Apple Developer Account
- Let Xcode automatically provision a profile for your app
4- Build or run your project again
5- Trust your newly created Development Certificate on your iOS device
via Settings > General > Device Management > [your new certificate] > Trus
I have no idea how to export to get ipa file. I am new to ios development. And also I am not sure that the customer can install this ipa file on his iphone without using xcode.
Any idea for exporting customer review applications(ipa, apk) in ios development? And which softwares need for customer?
It is possible to install ipa on device over the air, without connecting to Xcode.
You can use services like Crashlytics Beta http://try.crashlytics.com/beta/ or Apple's TestFlight. First one in much easier IMO and does not require a build to be reviewed by Apple review team.
However your build must be signed at least with Ad-Hoc distribution profile and this profile must include target device's unique device identifier UDID.
This answer could be helpful for you https://stackoverflow.com/a/47053605/979822
But before that you should fix everything that was written in your error message.

Integrating AWS device farm with Jenkins

I want to integrate my Jenkins build with AWS device farm. So, while creating a project on AWS device farm, it asks to upload the apk to test. I want that the apk should be picked from Jenkins server location and I don't have to manually upload apk to AWS device farm.
Is this possible?
Yes, you can configure Jenkins to upload your compiled application to AWS Device Farm. Install the AWS Device Farm Jenkins plugin and set Application to **/app-debug-unaligned.apk.
You can also watch our Jenkins integration webinar for more information.
To create a Project in AWS device farm is mandatory to upload an APK to proceed with the project creation.
The same will happen with the device pool, you can create a device pool only after creating a Run.
After you create that all this information will be available in Jenkins Server (of course after Authentication and plug in installed)
Another was is using AWS CLI but I can't give you more information as I haven't used yet

IBM Worklight - Deployment issue from Local Worklight Studio to Device

I have worklight app project on my local, one of my colleague has already deploy app on Worklight Server 6.1, he provided me apk and ipa both, I have installed ipa in my iPhone.
Now when I do some changes in the code for that app and deploy it doesn't give me update in my iPhone, i tried another android device but the update is not coming on that also, This work perfectly when I access my browser console (server console) for that app. but for device its not working
I have worklight studio 6.1, Server 6.1. While deploying i am giving correct URL and context, and on server console updating .wlapp for all environment.
I checked with my colleague and he is doing same step and when he updates something and deploy it works but when I do it doesn't
Please let me know what I am missing here
Thanks
Your explanation has many holes in it, making it difficult to understand your scenario. You need to explain it better and with far more detail about your environment, about your colleague's environment, about how s/he and you are building the project and where to you are deploying it.
Edit your question with the above.
Trying to understand what you wrote... do you mean that:
You have some Worklight project in your local Worklight Development Server (Worklight Studio).
You provide the project to your colleague who does... what with it? builds it? Where? in his OWN Worklight Development Server? and then provides you the .ipa and .apk?
To where does you colleague point the app? to his own server?
If you install an .ipa or .apk that points to server X (your colleague's) and the you build it again, in your own server, and do not point it to server X as well (AND deploy the .wlapp in server X), you will never get the update in the device.
You need to make sure what is the serving Worklight Server for the application.
You need to make sure to build the application and deploy it for that server.
This you set-up in Run As > Build Settings and Deploy Target.
You need to then Run As > Build application, and the deploy the generated .wlapp to server X
Then, the installed app will receive an update.

Android - Issue with .apk file

I do understand that a .apk file is created in the bin folder of an android project, when the project is run.
I have a question about this: is it possible that there would be any difference in the functionality of an app installed via eclipse (as in connecting the phone to the computer and uploading and installing the app on the phone) versus installing the app by downloading a .apk placed on a secure server?
The reason I ask this question is that I usually put up the .apk file on a secure server and the testing team downloads and installs the app for testing purposes. The testing team has started to report app crashes when accessing this app. However, I don't seem to be seeing the any such problems (even while replicating the same scenarios) with the app when I install it on the phone via a cable connected to the computer.
You might be falling into a caching issue. Make sure you get the QA team a new filename of the apk on the server to ensure that they never get a cached apk when downloading it. Also maybe create a md5 sum of the apk locally and run md5 on the apk on the server after upload to ensure it is the same.
e.g. use
md5 yourapk.apk > yourapk.md5
on your machine and the server..
Most likely you QA team has found issues that are specific to the device or Android platform version they test with. Try with your apk with the same hardware in your dev environment.
I don't see how that would possible. The Eclipse ADT plugin just calls the executables in the specified Android SDK location on your hard drive and the .apk gets generated only once when you use Eclipse to install the application to your plugged phone.
Unless you're packaging the two versions in a different way, that shouldn't be possible. My guess is that your testing team has just found bugs specific to the runtime environment (the phone). Maybe a different version of Android, conflicting custom ROM, etc.
No, there is no difference , if the apk on the secure server is as latest as you have on your computer.
I would recommend you to clean your project before uploading the apk to the server.
Regarding the crashes, i guess there are some location based problems.
Also check if you are uploading the apk from your workspace. or some other older version which is located in different place that you are not using anymore.

Categories

Resources