Forum Discussion

anhristov's avatar
Occasional Contributor
4 months 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
    Champion Level 3



    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) )