

Cadet 1st Class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-09-03
14:44
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,
2 Replies
Jan Czajkowski

Fleet Admiral
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-09-10
12:48
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!]
[Please do not contact me off line for receiving support. Use the forum!]


Cadet 1st Class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-09-17
12:18
Ok - thanks - the OTA is one way I could do try and do it from within the script. Thanks!