šŸ”„ Swap out test data in UIlicious with Datasets!

By Tai Shi Ling | February 14, 2019

Happy Valentine's, everyone!

This is our first release note of the new year, and we’re happy to announce the release of Datasets for UIlicious Studio!

Datasets let you configure different sets of test data to run a test with.

It’s useful when you want to:

(Note: Datasets are only available on the professional edition of UIlicious Studio. You can run public tests for free on UIlicious Snippets.)

Setting up and using Datasets

Datasets work by populating in the DATA object in your tests.

Let’s use this test for logging into Salesforce for example:

// Login to Salesforce 
I.goTo("https://login.saleforce.com/") 
I.fill("Username", DATA.username) 
I.fill("Password", DATA.password) 
I.click("Log in") 

// Verify that user is logged into the correct instance of Salesforce 
I.amAt(DATA.url)

We’ll set the username and password to log with, and url for the instance that the user is expected to be directed to for each test run using a dataset.

Let’s add a dataset (right beside the ā€œRunā€ button):

Give your dataset the name ā€œJohn Doeā€, and add the username property and value as below:

Add the password property and its value as below, but remember to checkmark it as a secret if you want to mask its value in the test reports.

Finally, we’ll add the url property and its value.

Now, let’s run the test with the ā€œJohn Doeā€ dataset, and voila!

1. I go to "https://login.salesforce.com/" ------ 2.3s SUCCESS 
2. I fill "Username": "[email protected]" --- 5.9s SUCCESS 
3. I fill "Password": "[truncated]" ------------- 1.8s SUCCESS 
4. I click "Log in" ----------------------------- 6.1s SUCCESS 
5. I am at "https://ap4.lightning.force.com/" --- SUCCESS

The value of password has been masked in the result because it is set as a secret property in this dataset.

What else is new and improved?

For the past months, we’ve also been focusing on making performance improvements and developing new features for the test engine so that you can create more elaborate and readable tests.

šŸš€ Test engine

See the list of commands.

šŸ“ˆ Reports

Thank you!

A great big thank you to users who have kindly lent themselves to beta test this new feature and try to break it and give us comments on improving the user experience!

Feedback?

We always love hearing feedback from users, and finding out the sorts of creative things people are doing with UIlicious, so feel free to drop us a note at [email protected]!

About Tai Shi Ling

Cofounder CEO of UIlicious. I've been coding for over a decade. Building delightful user interfaces is my favorite part of building software. I named the product UIlicious because I wanted folks to build UI that was delicious. Corny, I know.