[英]Is :TEXT a valid format for a KRL datasource?
The docs mention:XML, :JSON, and:HTML, but I have a URL that returns plain text.文档提到:XML、:JSON 和:HTML,但我有一个 ZE6B391A23D2C4D457023A 返回纯文本。 I'd like to write我想写
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;
}
Are:XML, :JSON, and:HTML the only valid formats for a datasource?是:XML、:JSON 和:HTML 是数据源唯一有效的格式吗?
XML, JSON, and HTML are the only current valid formats but if the Kynetx engine isn't able to parse the datasource as that format, it treats it as a string. XML、JSON 和 HTML 是当前唯一的有效格式,但如果 Kynetx 引擎无法将字符串数据源解析为该格式,则会将其视为。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.