文档提到 :XML、:JSON 和 :HTML,但我有一个返回纯文本的 URL。我想写
global {
datasource tests_executed:TEXT <- "http://saucelabs.com/rest/v1/info/counter"
}
rule how_many_tests {
pre {
count = datasource:tests_executed("");
msg = "Executed #{count} tests.";
}
notify("Saucelabs",msg) with sticky=true;
}
:XML、:JSON 和 :HTML 是数据源唯一有效的格式吗?