Book Image

Advanced UFT 12 for Test Engineers Cookbook

Book Image

Advanced UFT 12 for Test Engineers Cookbook

Overview of this book

Table of Contents (18 chapters)
Advanced UFT 12 for Test Engineers Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using remote objects


Working with function libraries can become quite tedious, as each test must have them associated. Deployment issues may arise when tests are copied to other machines. For instance, resources may be missing due to misconfiguration (for example, undefined search paths).

If we could store the code on a server, so that associating function libraries would not be necessary, we would gain three main benefits:

  • Code maintenance and deployment would be simplified and hence become more efficient

  • The dependency of tests on the association of function libraries would vanish

  • Tests would run on any machine that has Internet connectivity and thus reach the code server

In this recipe, we will examine a clever way to accomplish this.

Getting ready

From the File menu, navigate to New | Test, or use the Ctrl + N shortcut. Create a new file named CROWrapper.wsc (C stands for class and RO for remote object).

Note

A Windows Script Component (WSC) file is actually a special XML file that can store...