Attempt fixing the slow run by changing the main page and removing the noskin in the emulator. Time the expect run

This commit is contained in:
Erjan Gavalji
2015-10-09 10:48:08 +03:00
parent ac78de2128
commit 77da614b3d
3 changed files with 8 additions and 10 deletions

View File

@ -7,15 +7,12 @@ trace.enable();
trace.addCategories(trace.categories.Test + "," + trace.categories.Error);
export function createPage() {
// tests.runAll();
var page = new Page();
page.on("navigatedTo", function() {
setTimeout(function() {
var navigatedToHandler = function() {
tests.runAll();
}, 3000);
});
// page.content = new GridLayout();
page.off("navigatedTo", navigatedToHandler);
};
page.on("navigatedTo", navigatedToHandler);
return page;
}

View File

@ -9,7 +9,7 @@
#send \003
set timeout 600
set timeout 1200
#spawn (adb logcat | tee ./__TESTRESULT__.txt)
log_file -noappend ./__TESTRESULT__.txt
spawn adb logcat

View File

@ -13,7 +13,8 @@ cd $workingdir
echo "------------------------------------------------"
echo "Starting the emulator..."
time emulator -avd Api19 -no-skin -no-audio & # -gpu on
#time emulator -avd Api19 -no-skin -no-audio & # -gpu on
time emulator -avd Api19 -no-audio & # -gpu on
#emulator -avd Api19 -no-skin -no-audio -no-window &
echo "------------------------------------------------"
@ -66,4 +67,4 @@ cd $startdir
echo "------------------------------------------------"
echo "Waiting for the tests to finish executing..."
./expect.exp
time ./expect.exp