EBaethke
11 years agoContributor
Custom Script: Project Search within SoapUI
As you've all probably noticed, SoapUI doesn't have any built-in search mechanism. So I've created a script that will search the Project and output results to the Script Log and thought I'd share with you all.
It works by looking up the files directly using Java and performing a line-by-line search. I then use some regex to identify the Test Case, Test Suite, Resource, etc. location of each search result. It works for both composite (multi-file) and regular (single-file) projects.
**Note: for now the setting: "WSDL Settings >> Pretty Print Project Files" must be enabled. But if you played around with my regex you could probably fix that.
You should be able to import this test case anywhere into your project.
I've tried this out in SoapUI and SoapUIPro, seems to work in both with no issues.
Definitely let me know if you have any comments/questions
It works by looking up the files directly using Java and performing a line-by-line search. I then use some regex to identify the Test Case, Test Suite, Resource, etc. location of each search result. It works for both composite (multi-file) and regular (single-file) projects.
**Note: for now the setting: "WSDL Settings >> Pretty Print Project Files" must be enabled. But if you played around with my regex you could probably fix that.
You should be able to import this test case anywhere into your project.
I've tried this out in SoapUI and SoapUIPro, seems to work in both with no issues.
Definitely let me know if you have any comments/questions