ASF Bugzilla – Attachment 32922 Details for
Bug 58164
Check if file already exists on ResultCollector listener before starting the loadtest
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Check if file exist on ResultCollector listener before start the loadtest
CheckFileOnResultCollector.ptach (text/plain), 1.14 KB, created by
mchassagneux
on 2015-07-21 13:28:53 UTC
(
hide
)
Description:
Check if file exist on ResultCollector listener before start the loadtest
Filename:
MIME Type:
Creator:
mchassagneux
Created:
2015-07-21 13:28:53 UTC
Size:
1.14 KB
patch
obsolete
>diff C:/perso_max/workspace/JMeter_2.12/src/core/org/apache/jmeter/engine/DistributedRunner.java C:/perso_max/workspace/JMeter/src/core/org/apache/jmeter/engine/DistributedRunner.java >75,96d74 >< >< // Check if file exist on ResultCollector listener before start the test >< SearchByClass<ResultCollector> resultListeners = new SearchByClass<ResultCollector>(ResultCollector.class); >< tree.traverse(resultListeners); >< Iterator<ResultCollector> irc = resultListeners.getSearchResults().iterator(); >< while (irc.hasNext() ) { >< ResultCollector rc = irc.next(); >< File f = new File(rc.getFilename()); >< if (f.exists()) >< { >< int response = JOptionPane.showConfirmDialog(null, >< "Le fichier \"" + rc.getFilename() + "\" existe, voulez-vous continuer?", // $NON-NLS-1$ >< "Warning", // $NON-NLS-1$ >< JOptionPane.YES_NO_OPTION); >< if ( response == JOptionPane.NO_OPTION ) >< { >< stop(); >< return; >< } >< } >< } ><
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 58164
: 32922 |
32924