Comment #7 on issue 940 by sfuentes...@gmail.com: `Import Variables` and `Import Resource` keywords should import files even if they are already imported
https://code.google.com/p/robotframework/issues/detail?id=940

pekka.klarck

here you go more details.

in the following example may help to understand what is going on.
I first read the file using OperatingSystem.Get File and its content is displayed. right after that I use BuiltIn.Import Variables to import the variables from the same file, and clearly the content is different.

any idea? shouldn't Import Variable re-import.

KEYWORD: ${the file} = OperatingSystem.Get File ${RES_eCAPS_WECAN}/payment_variables.py
        Documentation:  
        Returns the contents of a specified file.
Start / End / Elapsed: 20150624 12:05:29.847 / 20150624 12:05:29.848 / 00:00:00.001
        
12:05:29.848 INFO Getting file 'C:\Workspace\CAPSProject\capstest\resources\eCAPS\eCAPS_WECAN\payment_variables.py' 12:05:29.848 INFO ${the file} = fields_to_validate = {'CCType':'','Transaction Status':'true','Error Code':'0','IP address':'10.96.56.67','Amount':'10.64','Last4CCDigits':'','session id': 'YjI2ZTVlYmItYTllZC00N2Q2LWI4NjMtMGZlN2M5NTY...


KEYWORD: BuiltIn.Import Variables ${RES_eCAPS_WECAN}/payment_variables.py
        Documentation:  
        Imports a variable file with the given path and optional arguments.
Start / End / Elapsed: 20150624 12:05:29.850 / 20150624 12:05:29.853 / 00:00:00.003
        12:05:29.853    INFO    True
C:\Workspace\CAPSProject\capstest\resources\eCAPS\eCAPS_WECAN\payment_variables.py
        [u'overwrite=True']
<module 'payment_variables' from 'C:\Workspace\CAPSProject\capstest\resources\eCAPS\eCAPS_WECAN\payment_variables.py'> [('fields_to_validate', {'session id': 'YjI2ZTVlYmItYTllZC00N2Q2LWI4NjMtMGZlN2M5NTYxNzAy', 'IP address': '10.96.56.67', 'Amount': '10.64', 'Last4CCDigits': '1111', 'Product Code': '7181', 'Transaction Status': 'true', 'CCType': 'VISA', 'Error Code': '0'})]


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to