TelQA CodeScripts - C# and VB.NET
TelQA CodeScripts
For applications requiring highly advanced script development
or platform specific coding, TelQA Test provides C# and VB.Net
scripting facilities using the TelQA CodeScript Editor and Microsoft's .NET compiler. This
combination allows users to combine full integration within TelQA Test whilst still
allowing access to the full range of features provided by Microsoft's native .NET
languages.
TelQA CodeScripts provide a powerful method for creating the replayable
user interactions which form the basis of an automated performance test. These replayable
user interactions are typically captured interactions which are then edited to allow
any specific user information to be modified during the test run. Within a test,
one or more of these scripts are replayed as a Virtual User (VU).
User interactions are coded as a series of script "steps" which run within a TelQA
"script" class. As an example a webpage script step provides the necessary properties
and methods for simulating the retrieval of a webpage by a browser. Within the webpage
are the requests for individual page elements and the information relating to response
times, etc. The C# code shown as Figure 1 includes the webpage and request classes. The code within the webpage and request regions are shown as
Figure 2.
Figure 1
Figure 2
TelQA provide the necessary classes and methods for scripting VUs for performance testing HTTP and legacy (terminal) applications.
CodeScript Editor
The TelQA CodeScript Editor incudes intellesense and outlining for both VB.NET
and C#.
Combining CodeScripts and SmartScripts
Where C# or VB.NET is required for pre-test setup, low-level system access, or post
test clean up, the ability to call CodeScripts directly from within
SmartScripts
offers the benefits of modular design, code re-use and reduced script validation.
SmartScript Conversion
For complex scripts which require extensive C# or VB.NET programming, the SmartScript
to CodeScript conversion allows the full features of the
SmartScript
capture and modelling to be used within the script development.
Capture Directly to CodeScript
TelQA Test also provides facilities for capturing directly to C# or VB.NET scripts.
TelQA
SmartScripts
provide a powerful and easy to use method for creating the replayable user interactions. These replayable user interactions
are typically captured interactions which are then edited to allow any specific
user information to be modified during the test run. Within a test, one or more
of these scripts are replayed as a Virtual User (VU).
Note that TelQA recommend the use of
SmartScripts
for performance testing applications using TelQA Test and TelQA Test Lite. The SmartScript Editor provides an easy and simple method for developing, testing and debugging TelQA scripts.