var _appURL;
var _resultXML;
var Tests;
-var mandatorylist = new Array("usbHost","screenNormal","inputKeyboard","multiTouchCount");
+var mandatorylist = new Array(
+ "usbHost",
+ "screenSizeNormal",
+ "inputKeyboard",
+ "multiTouchCount");
var accMarks = {};
var noSupport = {};
var resultFile = "tct-behavior-tests.result.xml";
}
});
- $("#tool_title").empty().append("<h1 style=\"width:75%; margin-left:auto; margin-right:auto;\">TCT Behavior Test Tool</h1><a class=\"ui-btn-right\">"+version+"</a>");
+ $("#tool_title").empty().append("<h1 style=\"width:75%; margin-left:auto; margin-right:auto;\">TCT Behavior Test Tool</h1><a class=\"ui-btn-right\">" + version + "</a>");
}
function launchApp() {
_appURL = url;
jQuery("#overlayBackground").show();
$.mobile.showPageLoadingMsg();
- _timer = setTimeout(launchApp, 1000);
+ _timer = setTimeout(launchApp, 500);
}
function updateAppDecoration() {
if (filename == resultFile)
alert("Export result to " + resultFile + " successfully.");
- if(need_exit)
+ if (need_exit)
exitTest();
};
onsuccess = function(dir) {
- if (need_exit)
- dir.deleteFile(dir.fullPath + "/" + tmpResultFile);
+// if (need_exit)
+// dir.deleteFile(dir.fullPath + "/" + tmpResultFile);
dir.deleteFile(dir.fullPath + "/" + filename);
file = dir.createFile(filename);
file.openStream("rw", successCallback, onerror, "UTF-8");
};
onerror = function(error) {
- alert("Export result fail: "+error);
+ alert("Export result fail: " + error);
};
try {
tizen.filesystem.resolve('documents', onsuccess, onerror, "rw");
} catch (err) {
- console.log("Write file fail: " + err.message);
+ alert("Write file fail: " + err.message);
}
}
successCallback = function(files) {
for(var i = 0; i < files.length; i++)
if (files[i].name == tmpResultFile) {
- if (confirm("found tmp result. do you want to load it?")) {
+ if (confirm("Continue last test?")) {
files[i].readAsText(
function(xml){
_mergeResult($(xml).find("testcase"));
updateAppDecoration();
- }, function(e){
- console.log("read tmp result error: " + e.message);
+ }, function(err){
+ console.log("read tmp result error: " + err.message);
}, "UTF-8"
);
return;
onerror = function(error) {
console.log(error);
+ updateAppDecoration();
};
+
try {
tizen.filesystem.resolve('documents', onsuccess, onerror, "rw");
} catch (err) {
console.log("Load tmp result fail: " + err.message);
+ updateAppDecoration();
}
}
Tests.each(
function(index, item) {
$(item).attr("result", "non-executed");
+ var testAppcap = $(item).attr("id");
+ var is_cap_support = true;
+ $(item).find("capability").each(function(){
+ is_cap_support = isCapSupport($(item).attr("name"));
+ });
+ if(is_cap_support === false){
+ noSupport[testAppcap] = true;
+ $(item).attr("result", "FAIL");
+ }
+
tmpResult.each(
function(order, tmpItem) {
if ($(item).attr("id") === $(tmpItem).attr("id")) {
}
return true;
} catch (err) {
- alert("Exception: " + err.message);
+ console.log("Exception: " + err.message);
return false;
}
}
};
return false;
} catch (err) {
- alert("Exception: " + err.message);
+ console.log("Exception: " + err.message);
return false;
}
}