1 18 19 package org.apache.jmeter.config; 20 21 import java.io.Serializable ; 22 23 import org.apache.jmeter.testelement.property.StringProperty; 24 25 29 public class LoginConfig extends ConfigTestElement implements Serializable 30 { 32 35 public LoginConfig() 36 { 37 } 38 39 44 public void setUsername(String username) 45 { 46 setProperty(new StringProperty(ConfigTestElement.USERNAME, username)); 47 } 48 49 54 public void setPassword(String password) 55 { 56 setProperty(new StringProperty(ConfigTestElement.PASSWORD, password)); 57 } 58 59 64 public String getUsername() 65 { 66 return getPropertyAsString(ConfigTestElement.USERNAME); 67 } 68 69 74 public String getPassword() 75 { 76 return getPropertyAsString(ConfigTestElement.PASSWORD); 77 } 78 79 public String toString() 80 { 81 return getUsername() + "=" + getPassword(); 82 } 83 } 84 | Popular Tags |