Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 4.28 KB

SamplesIntroduction.md

File metadata and controls

19 lines (15 loc) · 4.28 KB

Samples Introduction

Document introducing the information about the controls and test engine features demonstrated for each sample. Most sample contains one zipped msapp and one YAML test plan. YAML test plan are all define in YAML Format. In order to test Sample please follow readme.

Type of Samples

Sample Name Path Description Features Demonstrated
Basic Gallery sample/basicgallery Interact with controls within a basic gallery
  • Assert Label Text to be the first item("Lorem ipsum 1") in the gallery.
  • Select on the NextArrow in first row on gallery.
  • Assert Label Text to be second item("Lorem ipsum 2") to validate the label in the 2nd row of the gallery.
Button Clicker sample/buttonclicker Counter increments when the button is clicked
  • Test settings and environment can be a pointer to another YAML file.
  • OnTestCaseStart, OnTestCaseComplete and OnTestSuiteComplete are supported.
  • Wait for the labelto be certain number("0").
  • Select on the Button.
  • Assert label to be number+1("1").
Calculator sample/calculator Calculator app works as a component
  • A component for Calculator with two labels for number input, one lable for calculated result and four Button for Add, Subtract, Multiply and Divide.
  • Assert two input label to certain number("100", "100").
  • Select on one of four Button(Add).
  • Assert result Label to right value("200").
Connector sample/connector Shows how to mock network requests with MSN Weather connector
  • Use SetProperty to set TextInput to a String("Atlanta").
  • Select on Button.
  • Assert Label to a string ("You are seeing the mock response").
  • Check connector for more information.
Container sample/containers Interact with control in the container
  • Select on the Button.
  • Assert label to be number+1("1").
  • Check Container control for more information.
DifferentVariableTypes sample/differentvariabletypes Showcases usage of Assert/Wait/SetProperty with multiple types
  • Use Wait, SetProperty, and Assert function to test TextInput, Rating, Toggle, DatePicker, Dropdown, ComboBox control to make sure DateType like String, Number, Boolean, Date, Record, and Table works.
ManyScreens sample/manyscreens Interact with controls with different screens
  • Three Screens on the canvas app.
  • First 'Home Screem' have two Button navigate to other two screen.
  • Other two Screen 'Label Screen' and 'Gallery Screen' each have one Button navigate to the 'Home Screem'.
  • Select on the 'Label Screen ' Button.
  • Assert label1 to be string on 'Label Screen'("Hello world!").
Nested Gallery sample/nestedgallery Interact with controls within a nested gallery
  • Two Gallery and two label each with column and row.
  • Column Gallery inside row Gallery.
  • Select 1st row in the row gallery.
  • Assert row Label to validate that the selected row is updated.
  • Select 2nd column in the column gallery.
  • Assert column Label to validate that the selected column is updated.
PCF Component sample/pcfcomponent Interact with increment control of the PCF Component
  • Import PCF Component in the canvsas app.
  • Use SetProperty to set IncrementControl1 to a number(10).
  • Assert IncrementControl1 to a number (10).
  • Check PCF Component for more information.
Screen Navigation sample/screennavigation Interact with controls for navigate to different screen
  • Two Screens and labels on the canvas app.
  • 'Screen1' have Button2 navigate to second screen.
  • 'Screen2' have Button1 navigate to first screen.
  • Select on the Button2.
  • Assert label2 to be the string("Screen2").