Documentation ¶
Overview ¶
Package vmware holds the implementation of the /vdi/apps/vdiconnector.VDIInt interface for Vmware application. It allows tests to retrieve VDI connector by calling s.FixtValue().(fixtures.HasVdiConnector).VdiConnector(). Ultimately, this lets tests that execute VDI CUJ to be parameterized as long as fixture has functions that are defined by vdi/fixtures.HasVdiConnector attached to its return type.
Index ¶
- Variables
- type Connector
- func (c *Connector) Init(s *testing.FixtState, d *uidetection.Context)
- func (c *Connector) Login(ctx context.Context, k *input.KeyboardEventWriter, cfg *apps.VDILoginConfig) error
- func (c *Connector) ResetSearch(ctx context.Context, k *input.KeyboardEventWriter) error
- func (c *Connector) SearchAndOpenApplication(ctx context.Context, k *input.KeyboardEventWriter, appName string, ...) uiauto.Action
- func (c *Connector) WaitForMainScreenVisible(ctx context.Context) error
- type UIFragmentName
Constants ¶
This section is empty.
Variables ¶
var VmwareData = []string{
"vmware/Splashscreen_AddBtn.png",
}
VmwareData holds the UI fragments that are used by Vmware connector. Use this as a data dependency when connecting to VMware.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { ApplicationID string // contains filtered or unexported fields }
Connector structure used for performing operation on Vmware app.
func (*Connector) Init ¶
func (c *Connector) Init(s *testing.FixtState, d *uidetection.Context)
Init initializes state of the connector.
func (*Connector) Login ¶
func (c *Connector) Login(ctx context.Context, k *input.KeyboardEventWriter, cfg *apps.VDILoginConfig) error
Login connects to the server and logs in using information provided in config.
func (*Connector) ResetSearch ¶
ResetSearch cleans search field. Call only when search was triggered by SearchAndOpenApplication().
func (*Connector) SearchAndOpenApplication ¶
func (c *Connector) SearchAndOpenApplication(ctx context.Context, k *input.KeyboardEventWriter, appName string, checkIfOpened func(context.Context) error) uiauto.Action
SearchAndOpenApplication opens given application using search provided in VMware, runs checkIfOpened function to ensure app opened. Before calling make sure main Vmware screen is visible by calling WaitForMainScreenVisible(). Call ResetSearch() to clean the search state.
type UIFragmentName ¶
type UIFragmentName int
UIFragmentName is the identifier to retrieve location of image from UiFragments.
const ( // SplashscreenAddBtn is an id for retrieving path to the image. SplashscreenAddBtn UIFragmentName = iota )