Forum Discussion
HimanshuTayal
5 years agoCommunity Hero
Apoorva6 :
You can split the path with "/" and save the last array into any variable and use further in you code where every you want to save.
Hope this will help. 🙂
Apoorva6
5 years agoFrequent Contributor
Himanshu,
Thanks, But I am not able to get the resource path itself in first attempt. Any code snippet available ?
The one i am using in the groovy I shared, i am getting it as null. Any code snippet you have handy to get it ?
- HimanshuTayal5 years agoCommunity Hero
Apoorva6 :
Below code will give you project path where your project is stored :
//gets the path of the project root def projectPath = new com.eviware.soapui.support.GroovyUtils(context).projectPath log.info projectPathThen you can move to any directory inside it accordingly.
Hope this will help you out 🙂