Skip to content

BrowserSessionStateExtractionConfig

fredericOfTestfabrik edited this page Apr 13, 2018 · 9 revisions

State extraction is one of the key elements of webmate, as many jobs require states to work properly and deliver reasonable results. For this reason, we configured this process to be as general as possible. However, there are certain cases where one need to change the configuration of the state extraction process, for example because the website under tests has specific requirements or the performance of the state extraction needs to be optimized.

Usage

To configure the state extraction to your liking, simply create a new BrowserSessionStateExtractionConfig and pass it to the extraction command.

BrowserSessionStateExtractionConfig config = new BrowserSessionStateExtractionConfig(null, 1000,2000, new com.testfabrik.webmate.javasdk.CommonUtils.Dimension(1920,1080),5000,true, new BrowserSessionScreenshotExtractionConfig(false), new BrowserSessionWarmUpConfig(2000,3000,20)); browserSession.createState("My State", config);

Configuration

The following Tables list all available coniguration variables, their effect and their default value

Variable Effect Default
stateId The Session Id the state should belong to.
extractionDelay The delay before state extraction is triggered.
extractionCooldown The delay after state extraction is finished.
optViewportDimension The dimensions the viewport should be resized to.
maxAdditionWaitingTimeForStateExtraction How much additional time the state extraction should get, after the projected end time is reached.
extractDomStateData wether DOM data should be extracted or not.
screenShotConfig The configuration for the screenshot extraction. If set to null, the default behaviour is chosen (Take no screenshot)
warmUpConfig The configuration for the warmup. If set to null, the default behaviour is chosen (Do not warm up)

Clone this wiki locally