rketsquare.robotframework-httprequestlibrary.0.0.19.source-code.HttpRequestLibrary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robotframework-httprequestlibrary Show documentation
Show all versions of robotframework-httprequestlibrary Show documentation
A Robot Framework library for HTTP request testing.
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