I want to test rest service thorough Jmeter, I have tested Rest call using postman and its working fine. thing is to run rest service from any client like postman, I need to login to my application first in browser and after login rest call will work in RESTClient(Firefox). But in case of Jmeter how to run then. I have added authorization. (Username and password) using HTTP Authorization manager still facing. Even I have added bean shell script bellow:
import org.apache.commons.codec.binary.Base64;
byte[] encodedUsernamePassword = Base64.
encodeBase64("harshal.shewale1@viewics.com:Harshal@1".getBytes());
vars.put("base64HeaderValue",new String(encodedUsernamePassword));
Still not running rest. Giving error as a Bad credentials.
Someone please guide me.