All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rketsquare.robotframework-httprequestlibrary.0.0.19.source-code.HttpRequestLibrary Maven / Gradle / Ivy

The newest version!
import org.robotframework.javalib.library.AnnotationLibrary;

public class HttpRequestLibrary extends AnnotationLibrary {

	public static final String ROBOT_LIBRARY_SCOPE = "GLOBAL";

	public HttpRequestLibrary() {
		super("com/github/hi_fi/httprequestlibrary/keywords/**");
		try {
		    Class.forName( "com.github.hi_fi.httprequestlibrary.utils.RobotLogger" );
		    System.setProperty("org.apache.commons.logging.Log", "com.github.hi_fi.httprequestlibrary.utils.RobotLogger");
		} catch( ClassNotFoundException e ) {
		    //Standard logging used in Apache.
		}
	}

	@Override
	public String getKeywordDocumentation(String keywordName) {
		if (keywordName.equals("__intro__"))
			return "``HttpRequestLibrary`` is a [http://code.google.com/p/robotframework/|Robot Framework] test library that uses the [https://hc.apache.org/index.html|Apache HTTP client].";
		return super.getKeywordDocumentation(keywordName);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy