Posted on

Videotutorial 09: Variables and Data

This is the nineth tutorial of this series explaining how to use variables and data in testup.io. So if you want to learn how to use variables and data in your test, testup.io is is ready for you:

  • Using the clipboard
  • Seting runtime variables
  • Working with test variables

Also read our post about how to integrate tests into Gitlab CI/CD pipelines

You’ll find more information about useful PHP commands in the using the editor advances section of our documentation. 

Posted on Leave a comment

Test an iOS App

Testing your own Android or iOS app requires to create a test with a mobile device and adding a reference to the uploaded file.

Upload file

  1. Get your <API Key> from Profile Page (Details)
  2. Upload a .zip or .tar.gz file containing your compressed .app bundle.

    Your .app bundle must represent a simulator build of your app. After running in iOS Simulator via Xcode, look in ~/Library/Developer/Xcode/DerivedData/<project-name>/Build/Products/Debug-iphonesimulator/.

    Alternatively, you may run xcodebuild -sdk iphonesimulator (if you use .xcodeproj) or xcodebuild -sdk iphonesimulator -workspace Sample.xcworkspace/ -scheme <your-scheme> -configuration Debug (if you use .xcworkspace) in your project directory, then zip the .app bundle in build/Debug-iphonesimulator/.

  3. Upload ZIP using the following curl commands
curl "https://app.testup.io/uploader/new?ApiKey=<API_KEY>&platform=ios" -F "file=@app-release.zip"

This curl command returns a JSON with <publicKey>.

You can update an existing APK using this <publicKey> with:

curl "https://app.testup.io/uploader/update/<publicKey>?ApiKey=<API_KEY>&platform=ios" -F "file=@app-release.zip"

Create and link test

  1. Create a new Test
  2. Select Mobile System
  3. Select the iOS device you need
  4. Create a variable by clicking “+” in Advanced Section
  5. AppetizeAppPublicKey = <publicKey>

Create your Test

Click “Edit” on top-right of the “Test Settings” screen