Class: Applitools::MatchSingleCheckData
Instance Attribute Summary
#app_output, #ignore_mismatch, #options, #tag, #user_inputs
Class Method Summary
collapse
Instance Method Summary
collapse
convert_coordinates, #convert_floating_regions_coordinates, #convert_ignored_regions_coordinates, #exact, #exact=, #floating_regions=, #ignore_caret=, #ignored_regions=, #initialize, #match_level, #match_level=, #read_target, #remainder, #remainder=, #scale, #scale=, #screenshot, #to_hash, #to_s, #trim=, valid_input, valid_region
Class Method Details
.default_data ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/applitools/core/match_single_check_data.rb', line 5
def default_data
super.merge!(
'startInfo' => {
'agentId' => nil,
'appIdOrName' => nil,
'verId' => nil,
'scenarioIdOrName' => nil,
'batchInfo' => {},
'envName' => nil,
'environment' => {},
'defaultMatchSettings' => nil,
'branchName' => nil,
'parentBranchName' => nil,
'properties' => nil
}
)
end
|
Instance Method Details
#agent_id ⇒ Object
52
53
54
|
# File 'lib/applitools/core/match_single_check_data.rb', line 52
def agent_id
current_data['startInfo']['agentId']
end
|
#remove_session_if_matching=(value) ⇒ Object
48
49
50
|
# File 'lib/applitools/core/match_single_check_data.rb', line 48
def remove_session_if_matching=(value)
current_data['removeSessionIfMatching'] = value ? true : false
end
|
#start_info=(value) ⇒ Object
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/applitools/core/match_single_check_data.rb', line 24
def start_info=(value)
Applitools::ArgumentGuard.is_a? value, 'value', Applitools::SessionStartInfo
hash_value = value.to_hash
current_data['startInfo']['batchInfo'] = hash_value[:batch_info]
current_data['startInfo']['environment'] = hash_value[:environment]
current_data['startInfo']['agentId'] = hash_value[:agent_id]
current_data['startInfo']['appIdOrName'] = hash_value[:app_id_or_name]
current_data['startInfo']['verId'] = hash_value[:ver_id]
current_data['startInfo']['scenarioIdOrName'] = hash_value[:scenario_id_or_name]
current_data['startInfo']['envName'] = hash_value[:env_name]
current_data['startInfo']['defaultMatchSettings'] = hash_value[:default_match_settings]
current_data['startInfo']['branchName'] = hash_value[:branch_name]
current_data['startInfo']['parentBranchName'] = hash_value[:parent_branch_name]
current_data['startInfo']['properties'] = hash_value[:properties]
end
|
#update_baseline_if_different=(value) ⇒ Object
40
41
42
|
# File 'lib/applitools/core/match_single_check_data.rb', line 40
def update_baseline_if_different=(value)
current_data['updateBaselineIfDifferent'] = value ? true : false
end
|
#update_baseline_if_new=(value) ⇒ Object
44
45
46
|
# File 'lib/applitools/core/match_single_check_data.rb', line 44
def update_baseline_if_new=(value)
current_data['updateBaselineIfNew'] = value ? true : false
end
|