What is ECL command to access AUT workspace? [message #1703282] |
Thu, 30 July 2015 05:30  |
Eclipse User |
|
|
|
Hi,
I am working on Folder Context option of RCPTT and trying to copy contents (files and directories) inside my testpath, so that I can use a relative path from ECL to access those files which are used in test.
In case of having a relative path, folder context provides two options:
1. home://<folder_name> - copies into my home (example: /usr2/c_jrex)
2. workspace://<folder_name> - copies into AUT workspace (example: /usr2/c_jrex/TestPlan/aut-QSIP-2)
Using my ECL script to access this directory, I have two options:
a. get-java-property "user.home" points to my home (example: /usr2/c_jrex)
b. get-java-property "user.dir" points to my AUT executable directory (example: /usr2/c_jrex/TestPlan/QSIP)
As these are the two properties which Java provides us (https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html)
Hence, you can see that 1. and a. are compatible. I can copy it to home or have a relative path to home. I am able to do it. But during CI using Jenkins, I am not sure if we have a complete directory path to access path from home.
But 2. and b. are parallel directors which doesn't know the name of each other. Hence it is hard to map each other using this. 2. just copies essential files and directories into our AUT workspace.
My question is, is there an ECL script to access AUT workspace (/usr2/c_jrex/TestPlan/aut-QSIP-2). I think there must be one, because Folder Context option workspace://<folder_name> is able to do it. Kindly let me know in the earliest.
Thank you
Jeevan
[Updated on: Thu, 30 July 2015 05:31] by Moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.21187 seconds