Forum Discussion

sukhsagar's avatar
sukhsagar
New Contributor
4 years ago
Solved

How to use Log message as variable in Keyword test?

Hi all,

 

Well i am trying to get the log results into the varibles to perform my keyword test, as these log results are form the script which is generating the random numbers form a csv file and i want to use these number for my keyword test to perform an automation test. it would be great if someone will guide me.

 

Thanks in advance.

6 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    I am not sure that I got your description...

    Can you provide an example, please?

     

    • sukhsagar's avatar
      sukhsagar
      New Contributor

      Hi AlexKaras ,

       

      Thank you for writing back, well i am performing a test where i need random numbers from csv file to execute the test. I am already done with the keyword test and the script to get the random numbers but as the script is giving these random numbers in result log so i need to use these result logs as variables to perform the keyword test. I would like to know if it is possible to make the result logs as variables to perform the test or it cannot be done.

       

      looking to hear from you.

       

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi,

         

        While you should be able to write a code that parses log file and extracts the number from it, but why not to use the (temporary) Project Variable and use it to keep and transfer the needed value between tests?