Skip to main content

Set up Orchestrator

Set up your SSH#

note

You can use Sift without setting up SSH connections and instead use devices connected to the same host (or emulators/simulators set up on the host) where Sift is executed. In that case skip to Create a new node section.

If you can connect to your node (or local machine) via ssh without password, then connection set up is right:

try out your login and continue set up Orchestrator.

or:

go to the set up SSH key guide and do all steps to create a new key and then return to this page.

Create a new node#

A node is a host that has real devices connected to it (or emulator/simulators set up).

warning

The new node must include SSH key path and include at least one device or simulator.

note

You can use paths relative to Sift working directory and environment variables when specifying paths in your configuration.

  1. Go to the Nodes page.

  2. Click Add Node button.

  3. Fill out all fields in the form.

    note

    You can use an environment variable(s) in Name, Host, Username and Path to private key fields.

General#

  • Name: This name will be displayed in the Orchestrator.
  • Host: Your SIFT machine is going to connect to this node via ssh. Please provide the IP address of the node. Use 127.0.0.1 to use devices connected to the same host (or emulators/simulators set up on the host) where Sift is executed.
  • Port: Your SIFT machine is going to connect to this node via ssh. Please provide the port. Use 22 to use devices connected to the same host (or emulators/simulators set up on the host) where Sift is executed.
  • Deployment Path: Sift will temporarily store the build & results here.

Authorization#

  • Username: Name of your local machine. You can use any text when using devices connected to the same host (or emulators/simulators set up on the host) where Sift is executed.
  • Path to private key: Your SIFT machine is going to connect to this node via ssh. Please provide the absolute path on the SIFT machine to a valid ssh private key which will be used for establishing a connection. By default it's located in /Users/user_name/.ssh/id_rsa where user_name is your machine username. You can use any path (even non existing) when using devices connected to the same host (or emulators/simulators set up on the host) where Sift is executed.
note

Please do not provide the value of the private key itself - this information is private and you should not share it with us.

  • Xcode Path: Where is Xcode located? By default it's located in /Applications/Xcode.app.

Enviroment variables and instrumentation arguments#

Enviroment variables - Optional. This variables will be injected into your .xctestrun and can be used from test environment. You can read more about Enviroment variables here.

Device / Simulator#

You can read more about Devices and Simulators here.

  1. You can get simulator id by going to Xcode -> Window -> Devices and Simulators;
  2. Right click on device or simulator in list -> Copy Identifier;
  3. Сlick Add Device or Add Simulator and paste id.
  1. Save all changes by clicking Create button.
creating a new node

Set up global settings#

  1. Go to the Global Settings page.

  2. Fill out all fields in the form.

  • Number or Reruns: How many reruns are allowed?
  • Tests Per Device: How many tests are allowed per one device / simulator?
  • Timeout for Test: SIFT will abort the execution after this number of seconds.
  • XCTestrun Path: SIFT uses test-without-build command so we need to locate .xctestrun file.
  • Output Directory Path: Where would you like to see the results? Please, choose a directory where you like to store the results. The directory will be created automatically if it doesn't exist.
  • Setup Script Path: You can optionally add the script to execute before the test run.
  • Tear Down Script Path: You can optionally add the script to execute after the test run.

Enviroment variables/Instrumentation arguments#

You can read more about Enviroment variables here.

  1. Save all changes by clicking Update button.

Tell Orchestrator about your tests#

  1. Open the terminal.

  2. Copy and Paste command:

Init Sift from master branch. In this case, sift executable is located at /usr/local/bin/ directory and has name sift.
./Sift orchestrator --token "your_token" --endpoint "https://api.orchestrator.engenious.io" --test-plan "your_test_plan" --init
  1. Instead of "your_token" use token from Global Settings.
Tell Orchestrator about your tests

Create test suite#

warning

When creating a new test suite make sure that at least one node is enabled on Test Suite Settings page. It's not possible to run test cases without enabled nodes.

Go to the guide, create a new test suite and return here.

Add test cases to test suite#

Go to the guide, add tests to the created test plan and go to the next step: Running Sift with Orchestrator.