Design a site like this with WordPress.com
Get started

Adding visual validations to automated tests with Oculow

Before you start using Oculow, you must know how to implement U.I. automation. Unfortunately, there is no getting around this requirement. We need to properly render the app/website to test what users will be displayed. If you don’t know what U.I. automation is or how to implement it, there are a lot of great tutorials out there.

If you’re interested in learning how to automate U.I. tests, we recommend you learn Selenium for browser testing or Appium for mobile testing, they both use WebDriver Protocol and are very similar in the way you automate tests.

Selenium doc: https://selenium.dev/documentation/en/
Appium doc: http://appium.io/docs/en/about-appium/getting-started/

Setting up

First off, you will need to create an account in our website to be able to use our platform. You can do so by going to https://www.oculow.com/register.html. If you already have an account, you can skip this step.

Once you have the account, you will need to navigate to the dashboard and generate a api key. To do so, you need to go to your profile page https://www.oculow.com/dashboard/profile.html, and click on generate in the api/secret key section.

You will be prompted for your password to validate that the requested user is the owner of the account. Once you hit save, you will be displayed the keys. It is important that you download or store the generated keys as this is the only time your secret key will be given.

Coding

For this section, we will be referencing our documentation a lot. We cannot anticipate your programming language and adding code for each SDK would be redundant. Instead we will explain the logic behind each section so you can code it in your prefered language.

Having generated the api keys, you will need to install and import the proper driver for your programming language. Please refer to our documentation in how to do this. Also make sure to select your programming language at the top of the doc. https://www.oculow.com/documentation/index.html

After importing the driver to your prefered language, you will need to set the api keys, this is what we use to authenticate you to our servers. To authenticate yourself, you can use the method for your preferred language as described in our documentation https://www.oculow.com/documentation/index.html#setting-your-apikey

After that, you’re pretty much ready to add visual validations. In order to add these validations, you will have to use a function provided by the Oculow SDK. If you need any reference for these function, you can always refer to our documentation. There is an automation example at the bottom which might also be useful for reference. https://www.oculow.com/documentation/index.html#simple-ui-test-example

Once you are done with your automation, you must use the dispose method to properly handle and retrieve the results from our servers. If dispose is not called, all of the validations done prior in the automation will be invalidated and you will not be able to render your results.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: