提交 319bd2b6 编写于 作者: K kohsuke

added more convenience method.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15158 71c3de6d-444a-0410-be80-ed276b4c234a
上级 19076873
......@@ -54,6 +54,7 @@ import hudson.model.Run;
import hudson.model.Saveable;
import hudson.model.TaskListener;
import hudson.model.UpdateCenter;
import hudson.model.Node;
import hudson.slaves.CommandLauncher;
import hudson.slaves.DumbSlave;
import hudson.slaves.RetentionStrategy;
......@@ -642,6 +643,14 @@ public abstract class HudsonTestCase extends TestCase {
return goTo(item.getUrl()+relative);
}
public HtmlPage getPage(Node item) throws IOException, SAXException {
return getPage(item,"");
}
public HtmlPage getPage(Node item, String relative) throws IOException, SAXException {
return goTo(item.toComputer().getUrl()+relative);
}
/**
* @deprecated
* This method expects a full URL. This method is marked as deprecated to warn you
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册