How to use resource drivers as libraries in TestShell Studio #398
Quali-Community
started this conversation in
Useful Tips & Guides
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
TestShell suite provides 2 main authoring clients, one is Studio client and the other is driver builder.
TestShell driver builder allows to create an automated procedure that can be complied into either an EXE of DLL File. One of the main usages of Driver Builder is to create resource drivers that are integrated into TestShell resource manager client to allow "right click" commands in TestShell resource manager.
Creating a driver that will work in resource manger and creating a library that will be used in Studio is a bit different.
In order to create resource driver the interface of each function should match a specific guidelines which are the following:
Many times we are creating a resource driver and after a while we want to leverage what we created and integrate it into our automation client (TestShell Studio) in order to create a full test case / regression test.
The following article will explain what are the steps that needs to be done in order to integrate a resource driver into TestShell Studio.
Procedure
3. Now when you will try to use one of the functions in the library that you just added you will see that you have 2 matrix as expected inputs, the resource and reservation matrix, and in addition you might have any other input that you defined in the specific function you are trying to run.
4. Mark all data that you have in the resource input field -> right click with your mouse -> extract variable
5. Now you will get the new variable window that will allow you to create the matrix variable as it should be sent to the function easily.
6. Repeat the steps above for the reservation matrix as well.
7. Now you have 2 new variables in your test case, one represent the resource matrix and the other the reservation. Now you can set the resource matrix with the needed values (e.g. ResourceAddress that will represent the address of the device that you are currently want to work on).
8. After setting the data in the resource matrix you can reuse it all over your test case for every function that you would like to use in your driver.
Important note - the resource matrix actually represent the resource that you initially used in order to run the function as a "right click" command, the fields that your driver expects to get from this matrix should be initialized in order to make your function work properly.
Good luck !
Thanks,
Oriel
Attachments:
Oriel Belzer (Oriel.B) - 01/31/2014 04:46 PM
· 2757 ·
Beta Was this translation helpful? Give feedback.
All reactions