[DO NOT REPLY: Bug 3184] New: Missing 'proxy server' in config elements

2001-08-20 Thread bugzilla

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3184

*** shadow/3184 Mon Aug 20 11:50:20 2001
--- shadow/3184.tmp.24440   Mon Aug 20 11:50:20 2001
***
*** 0 
--- 1,25 
+ ++
+ | Missing 'proxy server' in config elements  |
+ ++
+ |Bug #: 3184Product: JMeter  |
+ |   Status: NEW Version: 1.5 |
+ |   Resolution:Platform: PC  |
+ | Severity: Normal   OS/Version: Windows 9x  |
+ | Priority: Other Component: Main|
+ ++
+ |  Assigned To: [EMAIL PROTECTED]|
+ |  Reported By: [EMAIL PROTECTED]  |
+ |  CC list: Cc:  |
+ ++
+ |  URL:  |
+ ++
+ |  DESCRIPTION   |
+ Can't set up the browser monitoring because the pop-up menu is not showing 
+ the 'proxy server' option.  Documentation says the following:
+ 
+ To use the proxy server, create a Threadgroup in your testplan or workbench. In 
+ the Threadgroup, add the Proxy Server (it will be an option under Config 
+ Elements).
+ 
+ In the enclosed screen-shot, no 'Proxy Server' can be found in the 'Config 
+ Elements' selection.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




cvs commit: jakarta-jmeter/src/org/apache/jmeter/protocol/http/proxy Proxy.java

2001-08-20 Thread mstover1

mstover101/08/20 16:06:13

  Modified:src/org/apache/jmeter/gui MenuFactory.java
   src/org/apache/jmeter/protocol/http/config
MultipartUrlConfig.java UrlConfig.java
UrlConfigFull.java
   src/org/apache/jmeter/protocol/http/proxy Proxy.java
  Log:
  Added log statement
  
  Revision  ChangesPath
  1.12  +15 -3 jakarta-jmeter/src/org/apache/jmeter/gui/MenuFactory.java
  
  Index: MenuFactory.java
  ===
  RCS file: /home/cvs/jakarta-jmeter/src/org/apache/jmeter/gui/MenuFactory.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- MenuFactory.java  2001/08/16 23:36:56 1.11
  +++ MenuFactory.java  2001/08/20 23:06:13 1.12
  @@ -57,6 +57,8 @@
   import javax.swing.*;
   import java.util.*;
   
  +import org.apache.log4j.*;
  +
   import org.apache.jmeter.util.*;
   import org.apache.jmeter.gui.JMeterComponentModel;
   import org.apache.jmeter.gui.action.ActionRouter;
  @@ -65,12 +67,15 @@
*  Title: JMeter Description: Copyright: Copyright (c) 2000 Company: Apache
*
*@author Michael Stover
  - *@created$Date: 2001/08/16 23:36:56 $
  + *@created$Date: 2001/08/20 23:06:13 $
*@version1.0
***/
   
   public class MenuFactory
   {
  + public static Category catClass =
  +  Category.getInstance(MenuFactory.class.getName());
  +
private static JMenu timerMenu;
private static JMenu controllerMenu;
private static JMenu generativeControllerMenu;
  @@ -252,11 +257,18 @@
while (iter.hasNext())
{
String item = (String)iter.next();
  - if((skip == null || !skip.contains(item))  
!elementsToSkip.contains(item))
  + String label = getClassLabel(item);
  + if((skip == null || !skip.contains(item))  
!elementsToSkip.contains(item) 
  + 
!elementsToSkip.contains(label))
{
  - JMenuItem mItem = new 
JMenuItem(getClassLabel(item));
  + JMenuItem mItem = new JMenuItem(label);

mItem.addActionListener(ActionRouter.getInstance());
menu.add(mItem);
  + elementsToSkip.add(label);
  + }
  + else
  + {
  + catClass.debug(Not adding +item+ to menus);
}
   
}
  
  
  
  1.4   +2 -1  
jakarta-jmeter/src/org/apache/jmeter/protocol/http/config/MultipartUrlConfig.java
  
  Index: MultipartUrlConfig.java
  ===
  RCS file: 
/home/cvs/jakarta-jmeter/src/org/apache/jmeter/protocol/http/config/MultipartUrlConfig.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MultipartUrlConfig.java   2001/07/26 00:34:47 1.3
  +++ MultipartUrlConfig.java   2001/08/20 23:06:13 1.4
  @@ -45,10 +45,11 @@
return (String)this.getProperty(BOUNDARY);
}
   
  + /*
public String getClassLabel()
{
return Multipart-Form Sample;
  - }
  + }*/
   
/**
 *  !ToDo (Method description)
  
  
  
  1.19  +3 -3  
jakarta-jmeter/src/org/apache/jmeter/protocol/http/config/UrlConfig.java
  
  Index: UrlConfig.java
  ===
  RCS file: 
/home/cvs/jakarta-jmeter/src/org/apache/jmeter/protocol/http/config/UrlConfig.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- UrlConfig.java2001/08/02 11:29:15 1.18
  +++ UrlConfig.java2001/08/20 23:06:13 1.19
  @@ -65,8 +65,8 @@
*  Apache Foundation
*
*@author Michael Stover
  - *@created$Date: 2001/08/02 11:29:15 $
  - *@version$Revision: 1.18 $
  + *@created$Date: 2001/08/20 23:06:13 $
  + *@version$Revision: 1.19 $
*/
   
   public class UrlConfig extends AbstractConfigElement
  @@ -429,7 +429,7 @@
{
String name = args[i].substring(0,index);
String value = args[i].substring(index + 1);
  - addArgument(name, value);
  + addArgument(name, URLDecoder.decode(value));
}
}
}
  
  
  
  1.2   +5 -5  

Re: a few bugs

2001-08-20 Thread Mike Stover

From this list of bugs that Jaideep sent in, I've fixed #4 and #5.  #4 I 
fixed in an interesting way - the system will essentially only allow the 
first element it finds with a given class label (from the getClassLabel 
method).  Any other elements with the same class label it will ignore.  This 
could have certain consequences that have to be known to other developers, 
since they might accidentally name a component the same as a previous 
component.  

Come to think of it, this would be a good use of a log4j statement - to 
output the names of any classes that are skipped by the MenuFactory for this 
or other reasons.  [...working...]  So, I've added it.  

Now if someone would tell me what to do about this:

log4j:ERROR No appenders could be found for category 
(org.apache.jmeter.util.ClassFinder).
log4j:ERROR Please initialize the log4j system properly.  

Any help??

-Mike

On Monday 20 August 2001 12:58, you wrote:
 hi there

 congrats for adding some very useful functionality in jmeter lately.

 i have used jmeter build dated Aug 13 for testing and found a few bugs.As
 we expect another release of jmeter soon, these bugs might just help in
 making the release better.

 1)i tested yahoo.com with image download option and infinite looping, but
 the test stopped after throwing NullPointerException for an image it could
 not download.

 2)for altavista.com i found that jmeter downloaded only 3 images out of 9
 that were on the page.

 3)the proxy server doesnot seem to stop upon pressing Stop button. 
'coz
 after pressing that when i try to run some other server on same port...that
 was not started.

 4)More than one entry of ApacheJMeter.jar in classpath, causes some of the
 options in GUI popupmenus to appear more than once.e.g. if there are 2
 entries of ApacheJMeter in classpath (i would do that when i put the latest
 jar in front of classpath, ahead of old jar, without changing the
 classpath), the options in popups would appear twice...i think this is
 because of the way ClassFinder class works.

 5)i have a link like this in site
 a href=goto.jsp?url=http%3A%2F%2Fwww.google.com
 i.e.the url is encoded
 while running the html parser..the link gets downloaded as
 ?url=http%25253A%25252F%25252Fwww.g.oogle.com
 i.e.it encodes the % and it doesnt work

 hope this all helps in making jmeter even better.

 thanx
 jaideep








 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Mike Stover
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]