Test data in keyword-enabled manual test scripts

When you use test data in scripts that include keywords, make sure that the correct test data is called at the correct places. Link the test script that a keyword references to the same test data as the test script that contains that keyword.
Consider this situation:
  • Test Script A is linked with Test Data D.
  • Keyword K references Test Script A.
  • Test Script B contains Keyword K.

Test Data D is used in Test Script A, which is used in Keyword K. Because Test Script B uses Keyword K, it draws on Test Data D.

Because Test Script B contains a keyword that links to Test Data D, Test Script B must also link to Test Data D. Therefore, when a test case that contains Test Script B is run, the test data from Test Data D is shown at the keyword-enabled step. When a script links to test data and is referenced by a keyword, those associations are not automatically carried over into a test script that incorporates the keyword.



Have a problem or a question? Post it in the Jazz.net forum.