Your SlideShare is downloading. ×
0
Automation Tips Copyright: BetaSoftSystems Inc.
Advantages of SilkTest <ul><li>Recovery System </li></ul><ul><li>Extending the Class Hierarchy </li></ul><ul><li>Built in ...
Disadvantages of SilkTest <ul><li>Descriptive Programming </li></ul><ul><li>Checkpoints </li></ul><ul><li>Synchronization ...
Automation Framework <ul><li>Determining Your File Structure  </li></ul><ul><li>Creating Classes and Class Hierarchies  </...
Tips for Incorporating SilkTest Scripts into Your Testing Process <ul><li>Include the name of the automated test script or...
Designing Functions and Methods <ul><li>Creating general use methods and functions is a good way to reduce the size of you...
Using the &quot;@&quot; Redirection Operator <ul><li>[-] testcase foobar () appstate none </li></ul><ul><li>[ ] // prints ...
Upcoming SlideShare
Loading in...5
×

Automation tips

682

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
682
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Automation tips"

  1. 1. Automation Tips Copyright: BetaSoftSystems Inc.
  2. 2. Advantages of SilkTest <ul><li>Recovery System </li></ul><ul><li>Extending the Class Hierarchy </li></ul><ul><li>Built in Exception handling functions </li></ul><ul><li>Client Server Testing </li></ul><ul><li>Test Plan </li></ul><ul><li>Link Tester </li></ul>
  3. 3. Disadvantages of SilkTest <ul><li>Descriptive Programming </li></ul><ul><li>Checkpoints </li></ul><ul><li>Synchronization </li></ul><ul><li>Recovery Manager </li></ul>
  4. 4. Automation Framework <ul><li>Determining Your File Structure </li></ul><ul><li>Creating Classes and Class Hierarchies </li></ul><ul><li>Designing Functions and Methods </li></ul><ul><li>Is It a Method or a Function? </li></ul><ul><li>Using the &quot;@&quot; Redirection Operator </li></ul><ul><li>Use Data Driven Testing </li></ul>
  5. 5. Tips for Incorporating SilkTest Scripts into Your Testing Process <ul><li>Include the name of the automated test script or test case in the test documentation for each test.  This gives you traceability from the test documentation to the automated script. </li></ul><ul><li>Use the LogError , LogWarning , and print functions to add important information to the results file.  This will help both in tracking results and in debugging problems. </li></ul><ul><li>Don't automatically log any error encountered to your problem tracking system. Test automation can point you in the general direction of a problem but further investigation is usually required to identify the actual bug. </li></ul><ul><li>If a different group of testers is running the automated tests than creating them, ensure those testers get training in SilkTest too.  It will help them demystify their results and find false negatives (and false positives!) more quickly. </li></ul>
  6. 6. Designing Functions and Methods <ul><li>Creating general use methods and functions is a good way to reduce the size of your scripts and increase the reusability of your code.  When writing methods and functions: </li></ul><ul><li>Keep the method or function as generic as possible by passing parameters. </li></ul><ul><li>Consider passing a record rather than separate variables if multiple variables are needed. </li></ul><ul><li>With methods, remember that you can add more functionality at the window or subclass level by using the derived::method_name() syntax. </li></ul><ul><li>With functions, remember that you can always call functions from other functions.  Consider creating sets of functions that can work together rather than creating a single function that does everything but is less flexible. </li></ul>
  7. 7. Using the &quot;@&quot; Redirection Operator <ul><li>[-] testcase foobar () appstate none </li></ul><ul><li>[ ] // prints directory on the host machine where startup include files located </li></ul><ul><li>[ ] STRING sFunc = &quot;aGetStartupDir&quot; </li></ul><ul><li>[ ] STRING sDirectory = @(sFunc) () </li></ul><ul><li>[ ] print (sDirectory) </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×