Documentation ¶
Overview ¶
Package citrix holds the implementation of the /vdi/apps/vdiconnector.VDIInt interface for Citrix 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 CitrixData = []string{
"citrix/Splashscreen_ServerUrlTbx.png",
}
CitrixData holds the UI fragments that are used by Citrix connector. Use this as a data dependency when connecting to Citrix.
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 Citrix 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 Citrix, runs checkIfOpened function to ensure app opened. Before calling make sure main Citrix 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 ( // SplashscreenServerURLTbx is an id for retrieving path to the image. SplashscreenServerURLTbx UIFragmentName = iota )