Forum Discussion

anhristov's avatar
anhristov
Occasional Contributor
30 days ago

OCR value as a variable.

How do I make ocrValue equals transactionID in the previous function, by only running the ScriptOCR function during a keyword test? Do I have to make transactionID global variable? Both variables are used in different tests.

 

I want to get the OCR value to use in this keyword test.

 

2 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    I think that you can try following options:

    -- Make trasactionID a global variable;

    -- Assing value of transactionID to some Project Variable;

    -- Make first function to return transactionID as its result and make second function (ScriptOCR()) to get id of transaction as its parameter (i.e. ScriptOCR(iTransactionID) )