Skip to content
Snippets Groups Projects
Commit 7991d882 authored by Jueun Park's avatar Jueun Park
Browse files

Edited RandomRequestGenerator.jrag

parent 8f2b9678
No related branches found
No related tags found
1 merge request!6Resolve "check and fix random request generator"
Pipeline #13315 failed
......@@ -26,6 +26,10 @@ aspect RandomRequestGenerator{
try {
PathItemObject p = getP(i).getP().pathItemObject();
String path = getServ(0).getUrl();
if (getServ(0).getNumSt() != 0){
for ( ServerVariablesTuple t : getServ(0).getStList() )
path = path.replace("{" + t.getName() + "}", t.getS().getE(0).getEnumValue());
}
if (p.hasG()) {
urls.add(p.getG().generateRandomUrl(path + getP(i).getRef()));
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment