YUI Test???????????????
???????????? ???????[ 2014/4/22 16:01:43 ] ????????????????? ??????
???????У?Y.Test.Case???????????????????????Y.Test.Suite????????????????add?????????????Y.Test.Runner????????????????????????????run???????????????
????Y.Test.Case??????????object??????????????????????????????
????Name?????????????
????setUp???????????в?????????????У???????Щ??????????
????tearDown???????????????????????????????????????????
????testMethod1???????????????
????testMethod2???????????????
????PS??????setUp??tearDown?????setUp????????????????????????????У????3????????????????????????????????????
????Y.Assert?????????????xUnit???????????????????????巽????????ο????????????YUI test???????е??????????Щ???????????????????в???????????????????????????????????????????????????????
?????????????£?
??????????????????????????????xUnit????????????????YUI test???????????????????TestRunner???????????????????
testRunner.subscribe(testRunner.COMPLETE_EVENT?? Y.bind(this.testCompleteEvent?? this));
var testCompleteEvent = function(data){
this.console.log("????????????????????");
var testRunner = Y.Test.Runner;
var resultObj = testRunner.getResults(Y.Test.Format.JSON);
this.console.log(resultObj);
resultObj = testRunner.getResults(Y.Test.Format.XML);
this.console.log(resultObj);
resultObj = testRunner.getResults(Y.Test.Format.JUnitXML);
this.console.log(resultObj);
resultObj = testRunner.getResults(Y.Test.Format.TAP);
this.console.log(resultObj);
resultObj = testRunner.getResults();
var reporter = new Y.Test.Reporter("https://www.tenpay.com/report.cgi"?? Y.Test.Format.JSON);
reporter.report(resultObj);
}
??????Reporter????????????url???????????????????????????????console?л?????????????????????????????????????
??????

???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11