Introduction
Fixtures can be used to create, update and delete objects in the connected providers. If Virtual Silos have been configured, fixtures can also be used to create objects in Silos, where we would not normally be able to create test data.
For example, if a HR system requires a test user to be created, this can be a time consuming process, as it requires contacting the HR Team, providing them with the data they need to enter, and then waiting for the team to create the user, before it can be processed.
Virtual Silos allow us to use fixtures to create a new object in the HR silo, and allow are syncs to process the data as if it had come from the HR system. This allows us to run the tests quicker, and in a more repeatable manner, allowing the tests to be automated.
Creating Fixtures
There is several methods for creating fixtures in Test Panel.
Fixtures can be created inline within a Test Suite, from scratch within the fixtures view, by copying a fixture from the fixture view, and from an existing object in a silo, using the Data Tools view.
Fixture Creation - Inline
This skips the requirement to create the fixture in a separate UI, allowing it to be created slightly quickly than creating it from scratch. It allows the Fixture to be created within the Test Case. While it does have the advantage of being quicker, Fixtures created inline can not be used in other test cases, and are more difficult to duplicate for other tests.
Fixture Creation - From Scratch
This process involves creating the fixture from within the fixtures UI within Test Panel. It requires all the attributes and values to be manually added, but once it has been created, it can then be used in multiple test cases, and can be easily copied, allowing duplicates with minor changes to be quickly created
Fixture Creation - Copy existing fixture
If there is existing fixtures in the solution, and a new test case is required which is similar to one already present, the new fixture can be created by duplicating the existing fixture. The duplicate can then be adjusted as required to meet the needs of the fixture.
Fixture Creation - From Data Tools View
This is the quickest way to create test fixtures. It requires a data scan to have been run for the system which the fixture needs to be created. Using the Time Traveller, you can select the object you want to turn in to a fixture, and then save it as a fixture. Once this fixture has been created, it can be used in multiple test cases.
Please see the instructions below to create a fixture from the Data Tool.
Step | Image |
Log in to Identity Panel | |
Use Time Traveller to Identify the object you want to use as a baseline for the fixture. | |
Click the pencil icon to load the Data Tools | |
Select Test Panel | |
Select the Export Connections Provider which has been configured for Test Panel. (This would normally be called Test or Testing) | |
Now select the attributes which need to be included in the test fixture. Ticking the square box at the top, will select all the attributes. | |
Scroll to the bottom, and select the Step Type. If we are creating a Fake Object, we should select Identity Silo Add. If its an AD system, we should select the required AD. In this scenario, we are creating a user in the Silo of the HR System, so we select Identity Silo Add |
|
Click Next, and scroll to the top of the page | |
Enter a name for the fixture, and select the silo | |
Update the DN and Object Type as required | |
Edit the values as required, and scroll to the bottom, and click the Save button | |
To view the create fixture, go to Settings, and Test Panel | |
Select Fixtures, and change the provider to Testing. We can now use this when creating tests later on. |
Comments
0 comments
Please sign in to leave a comment.