CitrixVirtualUserScript SaveScreenshotToFile Method (String)C# API
Saves a screenshot to file

Namespace: Facilita.Fc.Citrix
Assembly: fcCitrix (in fcCitrix.dll) Version: 9.4.0.26
Syntax

public string SaveScreenshotToFile(
	string filePath
)

Parameters

filePath
Type: System String
An absolute path or a path relative to the runs folder which to save the bitmap. The file name must be included.

Return Value

The absolute path (including file name) where the screen portion should be saved.
Remarks

Saves a screenshot of the entire screen (as a bitmap) to either the absolute path specified or under the runs folder hierarchy using the naming convention shown (workspace hierarchy for localhost injector, fcCache for remote)
\runs\<run>\<series>.<index>\<injector>\<platform>.<engine>.<index>\<vu_group<\VU<index<.images\iteration.<iteration_index>\<screenshot>.bmp
\runs\<run>\<series>.<index>\<injector>\<platform>.<engine>.<index>\<vu_group>\<my_folder>\VU<vu_index>.images\iteration.<iteration_index>\<screenshot>.bmp
In addition if the relative path specified contains a folder defined by the user (i.e. <my_folder>\<screenshot>.bmp ) then the path and filename will be split by the VU index and iteration folders;
See Also