Skip to content

Commit

Permalink
Merge pull request #21 from rollno748/csv-config-2.2
Browse files Browse the repository at this point in the history
Csv config 2.2
  • Loading branch information
rollno748 authored Mar 18, 2024
2 parents 0f840d0 + 1d1e9b2 commit 2b90b30
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,14 @@ private void setAlias(final JMeterContext context, String alias) {
}
}

private boolean isServerMode() {
return System.getProperty("server_port") != null;
}

@Override
public void testStarted() {
FileServerExtended fileServer = FileServerExtended.getFileServer();
if(JMeter.isNonGUI()){
if(JMeter.isNonGUI() || isServerMode()){
String baseDirectory = org.apache.jmeter.services.FileServer.getFileServer().getBaseDir();
fileServer.setBasedir(baseDirectory);
}else {
Expand Down

0 comments on commit 2b90b30

Please sign in to comment.