citrix

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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

Login connects to the server and logs in using information provided in config.

func (*Connector) ResetSearch

func (c *Connector) ResetSearch(ctx context.Context, k *input.KeyboardEventWriter) error

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.

func (*Connector) WaitForMainScreenVisible

func (c *Connector) WaitForMainScreenVisible(ctx context.Context) error

WaitForMainScreenVisible ensures that element visible on the screen indicates it is the main Citrix screen.

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL