Test Cases

The test cases screen

This screen is the main screen that contains all of your test cases is where you manage test cases files in the folders.

First thing’s first

  1. Right click the dashboard on the left panel and choose “Add folder”

2. Name your folder and click add.

3. Now after the folder is created, it appears on the left panel under the dashboard, right click it and select the type of test case you wish to create - web or mobile.

or

Web/Mobile? What is the difference?

Web tests and mobile tests are running on different platforms, for example - a web test can run on Chrome browser , Internet Explorer, Firefox. When creating a web case - ‘Browsers’ tab will appear , and there you can choose your platform to run and the current server you wish to run it on.

A mobile test can run on certain devices - that use iOS operating system or Android , for example - Samsung Galaxy S7 , iPhone 8. When creating a mobile test - ‘Devices’ tab will appear, and there you can choose your platform to run and the current service provider / server you wish to run it on.

Can a web test run on a mobile device?

It sure can, make sure you use the correct capabilities (Use ‘browserName’ instead of ‘AppPackage’ and ‘AppActivity’) and choose a device from the ‘Devices' tab - or simply select an App from the case settings.

Filtering your devices list

You can filter simply by clicking them and choosing from the list, here are the filtering options:

  • Device Status

  • Selected Devices

  • Device Names

  • OS(Operating systems)

  • Versions

Edit/Upload the test case

  1. Select the test you wish to edit or upload on the left panel of the screen by clicking it.

  2. Click on script tab in the center of the screen.

  3. Use the edit button if you want to edit raw code, or “Upload new script” button on the right.

Running the test case

In order to run the test you must select a browser you want to run it on.

  1. Select the test you wish to edit or upload on the left panel of the screen by clicking it.

  2. Click on the browser tab in the center of the screen.

  3. Select a browser by checking the checkbox in the browser you want to run it on.

  4. Click on save changes on the top middle section, and you may run the test by clicking “Run Now”.

Using test parameters

In order to use a test parameter, you should use the key name in your script with a $ sign.

For example, if “userName” is the key and the value would be “User123”, use it under script tab like that:

web.type(“id=username”, “${userName}“);

  • Note this example is valid for Oxygen Framework only. for more information click here.

In this following example the test will send either parameter from the Environment screen, or Parameters tab which can use an uploaded XSLS/CSV file .

Testing technologies

The testing technologies supported by CloudBeat are: