Cadet 1st Class Cadet 1st Class
Cadet 1st Class
421 views

VAPI-XP pythonscript - import from Test Resources module?

Hi,

 

I'm doing a proof of concept on running selenium scripts using a pythonscript VAPI-XP-TEST. I've got the scripting running, and can run the test successfully.

 

However, I'd like to try out having the test in a Page Object type framework - is it possible to store python modules in the Test Resources module and then import those into the python script, and if so, how is it done from the python test script?

 

Thanks,

 

 

0 Likes
2 Replies
Fleet Admiral
Fleet Admiral

I don't know PythonScript, but since it appears to support the OTA API I guess you should be able to download a Resource using the QCResource Objectand the IResourceStorage interface, then access it from PythonScript.

Jan Czajkowski

[Please do not contact me off line for receiving support. Use the forum!]
0 Likes
Cadet 1st Class Cadet 1st Class
Cadet 1st Class

Ok - thanks  - the OTA is one way I could do try and do it from within the script. Thanks!

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.