directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject [directory-fortress-core] branch jmeter-add-case updated: refine file name
Date Mon, 21 Sep 2020 15:06:18 GMT
This is an automated email from the ASF dual-hosted git repository.

smckinney pushed a commit to branch jmeter-add-case
in repository https://gitbox.apache.org/repos/asf/directory-fortress-core.git


The following commit(s) were added to refs/heads/jmeter-add-case by this push:
     new b4b40da  refine file name
b4b40da is described below

commit b4b40da3e4dee187a179eb7bd195e8445b1b7a7d
Author: Shawn McKinney <smckinney@symas.com>
AuthorDate: Mon Sep 21 10:06:12 2020 -0500

    refine file name
---
 src/test/java/org/apache/directory/fortress/core/jmeter/UserBase.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/directory/fortress/core/jmeter/UserBase.java b/src/test/java/org/apache/directory/fortress/core/jmeter/UserBase.java
index 6571848..7f80d89 100644
--- a/src/test/java/org/apache/directory/fortress/core/jmeter/UserBase.java
+++ b/src/test/java/org/apache/directory/fortress/core/jmeter/UserBase.java
@@ -49,6 +49,7 @@ public abstract class UserBase extends AbstractJavaSamplerClient
     private static int count = 0;
     protected String hostname;
     protected String qualifier;
+    private String filename;
     protected boolean verify;
     private PrintWriter printWriter;
 
@@ -102,6 +103,7 @@ public abstract class UserBase extends AbstractJavaSamplerClient
         {
             qualifier = samplerContext.getParameter( "qualifier" );
         }
+        filename = "operations" + '-' + hostname + '-' + qualifier + ".txt";
         String szVerify = System.getProperty( "verify" );
         if (StringUtils.isEmpty( szVerify ))
         {
@@ -168,7 +170,7 @@ public abstract class UserBase extends AbstractJavaSamplerClient
     {
         try
         {
-            FileWriter fileWriter = new FileWriter("operations.txt");
+            FileWriter fileWriter = new FileWriter(filename);
             printWriter = new PrintWriter(fileWriter);
         }
         catch ( IOException ie )


Mime
View raw message