Forum Discussion

gdave's avatar
gdave
Regular Contributor
7 years ago
Solved

Fetching data from other test case

Hi

 

Say I have Test 1 which creates a client record using first name, last name, dob etc using a parameter.

 

Then, Test 2 is to about editing client records which were created in Test 1.

 

Now, the first step of Test 2 is to find a client using first & last name. Is there a way the first & last name can be captured from what has been used in Test 1 parameter  ? If yes, can someone please advise how do I do it ? Thanks

  • Then your best option would be using Project Variable,

     

    • Store your values into Project Variables in 1st KeywordTest
    • Make use of that Project Variable in upcoming KeywordTests

    This link will help you in work with Project Variable

8 Replies

  • shankar_r's avatar
    shankar_r
    Community Hero

    What you mean by TestCase here?

    • Is it one TestItem
    • Is it a one KeywordTests
    • Is it a one function

    Are you using KeywordTests or Scripting?

     

     

    • gdave's avatar
      gdave
      Regular Contributor

      Sorry, what I meant from Test Case was a Keyword Test and I am using KeywordTest and not Scripting. Thanks

      • shankar_r's avatar
        shankar_r
        Community Hero

        Then your best option would be using Project Variable,

         

        • Store your values into Project Variables in 1st KeywordTest
        • Make use of that Project Variable in upcoming KeywordTests

        This link will help you in work with Project Variable