Facebook WebDriverAgent: How to run it without Xcode - ios

I want to run WebDriverAgent app without Xcode, like Seetest application which works independently
https://experitest.com/mobile-test-automation/

Do you mean you want to run your automated test on iOS app with just SeeTest and without using Xcode?
If so then you need to do following steps:
Install SeeTest (Licensed or Trial version)
Create a DEF file for iOS device
Connect the iOS device to your computer
Record n play the steps required / Write your own code in the lang you are comfortable.
Execute the script.

Related

Is tehere a way to get my app's last version on TestFlight on console? (with altool etc.)

I am trying to create an auto builder for my Unity game and it is works well but every time i have to handle to version manually is there a vay to get test flight version on console?

Firebase test lab with iOS app - the app installed but did not open

I have a firebase project, I try to run my app in the test lab with a small test that I created, the app installed but when the test lab tries to open the app didn't open and the logs show's the next errors in the logs:
1."Couldn’t communicate with a helper application".
2. "Failed to get automation session for --project name--: Couldn’t communicate with a helper application. - ..project local test URL..."
The Xcode simulator shows me that my test pass and the Archive.zip file added.
If the app will open I think that the test will pass.
Thanks!
Please can you provide a matrix-id for your run? The test needs to have run in the last month.
It is also best to use the Firebase Test Lab Slack channel or Firebase Support for these kind of questions about individual test runs.

Pushing new builds onto the development/testing device on iOS when meteor files change (meteor run ios-device)

I'm able to deploy my app for testing to the iPhone with meteor run ios-device.
But how do I get it to keep refreshing the build with the latest code I'm writing?
Even if I switch over to xCode and hit the run button again, it shows me an older version of the app. I'd like to avoid deleting/pushing the app again and again onto the device if I can help it.
To clarify again, the behavior I'd like is: when I update the code in the meteorjs files, the meteor server refresh is triggered, this ought to refresh the app on my phone as well and display the new output. This is how it works on the browser and I think android-cordova as well.
I was making the mistake of deleting the app when I needed a new build from the Mac. This would delete the Trust that I was granting to my developer account to run apps on the iPhone. This would make XCode attempt to run the app on the device and error out.
So now I don't delete the app, and also I run meteor run ios-device --verbose (note the extra flag) to figure out any errors that are happening in the process.

Run app phonegap with xcode on jailbroken iPhone

I developed an app with phonegap, and I hate to try on a apple device. I've jailbroken my iPhone5s for try my app without pay apple.
I follow this guide, but seems does't work:
On your Jailbroken device install AppSync Unified 5.2-1 (or later)
from AngelXWind’s repo. Don’t use any other AppSync, and if you have
others, be sure to remove them. Open
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist
and change AD_HOC_CODE_SIGNING_ALLOWED to YES. You may need to
duplicate it to the desktop, change it, save it, then drag and drop
back into the original folder because OS X let you edit the file in
place. If XCode was running, restart XCode. Change your Project and
Target settings to “Ad Hoc Code Sign” in Build Settings Tell XCode to
run app on iPhone. At this point XCode will put app on your iDevice,
but can’t debug because it can’t attach to the process. The app will
start then close immediately. You can now manually start the app on
the phone now though. To enable debugging: In your project select
File>New File Property List and create a file called
“Entitlements.plist”. Add “Can be debugged” or “get-task-allow” (both
do the same thing) and set the value to YES. Now change your Project
and Target Code Signing Entitlements (In Build Settings) to
“Entitlements.plist” (you have to type it in). Now XCode can run and
debug the app. Good luck
This is the link of the guide.
When I run app, XCode tell me "Build Success", and on top it says :"Running on Iphone". If I open detail, it say: "Preparing to install " with a loading circle. It's 20 minute that is preparing to install my app.
How can I fix this problem?

Install iOS app into xcode simulator?

We're iOS (and other mobile platform) developers and our sales folks routinely need to provide demos of our apps for clients. What we're trying to do is automate a process so sales people can go to a self-serve website and feed the app into their simulator.
Using xcodebuild we can kick off the build process and then present it as a secure download link (via our intranet) but all that lets them do is install it to their iOS device. This is OK except not everyone on the road has an iOS device (or some have old iPod touches, and that's super slow). So, I was thinking that there's gotta be a way to get it installed in their simulator.
I see that others have hacked it in there by zipping up a simulator directory and placing it on another:
http://discussions.apple.com/thread.jspa?messageID=7680994
Set target to simulator, release.
deploy. stop iphone simulator. zip
your app from ~/Library/Application
Support/iPhone
Simulator/User/Applications/ send it
to someone else, and let that person
know to unzip it in that folder, than
start iphone simulator - and you're
done.
I guess we can do this, but it doesn't seem deterministic (or at least, a lot harder to script). I'd prefer to work with the .app but if the only way to do it is with this hacky copy and paste operation, that'll be what we have to do.
Any thoughts?
This could work: https://github.com/landonf/simlaunch/
I have not tried it yet by myself, but from video looks like the application converts .app compiled for simulator to a launcher, which can be used to run the app in simulator without installing it through xcode.
It probably uses the same kind of approach for simulating the app without installing it first that is described here: How to install iPhone application in iPhone Simulator
I know this isn't a direct answer to your question, but have you thought about having a server (eg a Mac mini) that has all the installed software on it? Then they could just use some form of screen sharing to run the app remotely.
I've used the simulator build mechanism above with a number of clients and once they figure out the right folder to drop the actual folder into, it's gone very well.
It's a little bit of a hack as you say but in some cases it also beats having to deal with ad hoc provisioning etc when it's less important to have it on an actual device itself.
I haven't tried it yet but I've heard pretty good things about Test Flight (http://testflightapp.com/) also as a way to distribute demos/betas so that might be worth a look as well.
I just developed a pair of scripts to (a) extract an app from a iOS simulator, and (b) install it on another iOS simulator. https://github.com/christopher-prince/SimAppScripts
Locate the .app bundle in your built products directory, typically under Debug-iphonesimulator or Release-iphonesimulator. Drag and drop that bundle onto the Simulator window and it will be installed (you may need to swipe on the home screen to show the icon).
You can also script this from the command line using xcrun simctl install. The xcrun simctl launch command can also start the application.
Most build systems can be automated (or you can use a post-build script from within Xcode, ordered as the last step) to create a ZIP of the app bundle and put it somewhere for download.
(If having the Archive workflow support creating Simulator IPAs would be useful for you please file an enhancement request at https://bugreport.apple.com)
check out waxsim:
https://github.com/square/WaxSim
http://cocoamanifest.net/articles/2011/12/running-your-ios-app-in-the-simulator-from-the-command-line.html
If you build it for i386 and distribute the .app, I believe this will work.

Resources