mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-21 01:59:13 +00:00
Minor updates and some cleanup
This commit is contained in:
parent
7f9a16ba75
commit
ec095d4176
Binary file not shown.
@ -158,14 +158,16 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
template.clickAndWaitForNewWindow();
|
template.clickAndWaitForNewWindow();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case DOCTYPE_SLIDES:
|
||||||
case DOCTYPE_PPT:
|
case DOCTYPE_PPT:
|
||||||
// UiObject newPowerpoint = getUiObjectByDescription("New PowerPoint", CLASS_IMAGE_BUTTON);
|
default:
|
||||||
UiObject newPowerpoint = getUiObjectByText("New PowerPoint", CLASS_TEXT_VIEW);
|
UiObject newPowerpoint = getUiObjectByText("New PowerPoint", CLASS_TEXT_VIEW);
|
||||||
newPowerpoint.clickAndWaitForNewWindow();
|
newPowerpoint.clickAndWaitForNewWindow();
|
||||||
|
// first slide
|
||||||
enterTextInSlide("Title", "WORKLOAD AUTOMATION");
|
enterTextInSlide("Title", "WORKLOAD AUTOMATION");
|
||||||
enterTextInSlide("Subtitle", "Measuring perfomance of different productivity apps on Android OS");
|
enterTextInSlide("Subtitle", "Measuring perfomance of different productivity apps on Android OS");
|
||||||
saveDocument(docName);
|
saveDocument(docName);
|
||||||
/*
|
|
||||||
insertSlide("Title and Content");
|
insertSlide("Title and Content");
|
||||||
enterTextInSlide("title", "Introduction");
|
enterTextInSlide("title", "Introduction");
|
||||||
enterTextInSlide("Text placeholder", "Welcome to Documentation for Workload Automation");
|
enterTextInSlide("Text placeholder", "Welcome to Documentation for Workload Automation");
|
||||||
@ -194,7 +196,6 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
insertSlide("Title and Content");
|
insertSlide("Title and Content");
|
||||||
enterTextInSlide("title", "Agendas - 2");
|
enterTextInSlide("title", "Agendas - 2");
|
||||||
enterTextInSlide("Text placeholder", DOCUMENTATION_AGENDAS_2);
|
enterTextInSlide("Text placeholder", DOCUMENTATION_AGENDAS_2);
|
||||||
*/
|
|
||||||
|
|
||||||
// get first image in gallery and insert
|
// get first image in gallery and insert
|
||||||
insertSlide("Title Only");
|
insertSlide("Title Only");
|
||||||
@ -216,16 +217,6 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
resize.dragTo(subtitle, 40);
|
resize.dragTo(subtitle, 40);
|
||||||
shape.dragTo(subtitle, 40);
|
shape.dragTo(subtitle, 40);
|
||||||
enterTextInSlide("title", "THE END. QUESTIONS?");
|
enterTextInSlide("title", "THE END. QUESTIONS?");
|
||||||
// view = getViewByDesc("Done");
|
|
||||||
// view = getViewByDesc("Navigate up");
|
|
||||||
// view.clickAndWaitForNewWindow();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case DOCTYPE_SLIDES:
|
|
||||||
default:
|
|
||||||
// UiObject newSlidesFile = getUiObjectByDescription("New Slides", CLASS_IMAGE_BUTTON);
|
|
||||||
UiObject newSlidesFile = getUiObjectByText("New Slides", CLASS_TEXT_VIEW);
|
|
||||||
newSlidesFile.clickAndWaitForNewWindow();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user