Lines Matching refs:state
82 self.state = CONNECTION_STATE.copy()
88 self.state['current_group'] = event_data['moduleName']
89 self.state['last_failed'] = None
90 self.state['current_test'] = None
94 self.state['test_run_name'] = event_data.setdefault('runName', '')
95 self.state['current_group_total'] = event_data['testCount']
96 self.state['test_count'] = 0
97 self.state['last_failed'] = None
98 self.state['current_test'] = None
103 self.state['current_test'] = name
104 self.state['test_count'] += 1
105 self.state['test_start_time'] = event_data['start_time']
108 self.state['last_failed'] = {'name': TEST_NAME_TEMPLATE % (
116 self.state['last_ignored'] = name
121 self.state['last_assumption_failed'] = name
127 group_name=self.state['current_group'],
128 test_name=self.state['current_test'],
131 test_count=self.state['test_count'],
134 group_total=self.state['current_group_total'],
136 test_run_name=self.state['test_run_name']))
142 group_name=self.state['current_group'],
143 test_name=self.state['current_test'],
146 test_count=self.state['test_count'],
149 group_total=self.state['current_group_total'],
151 test_run_name=self.state['test_run_name']))
163 if self.state['test_start_time']:
165 self.state['test_start_time'])
166 if self.state['last_failed'] and name == self.state['last_failed']['name']:
168 trace = self.state['last_failed']['trace']
169 self.state['last_failed'] = None
170 elif (self.state['last_assumption_failed'] and
171 name == self.state['last_assumption_failed']):
173 self.state['last_assumption_failed'] = None
175 elif self.state['last_ignored'] and name == self.state['last_ignored']:
177 self.state['last_ignored'] = None
191 group_name=self.state['current_group'],
195 test_count=self.state['test_count'],
199 group_total=self.state['current_group_total'],
200 test_run_name=self.state['test_run_name']))
253 if self.state['last_failed'] and (start_event ==
257 group_name=self.state['current_group'],
258 test_name=self.state['last_failed']['name'],
260 details=self.state['last_failed']['trace'],
261 test_count=self.state['test_count'],
264 group_total=self.state['current_group_total'],
266 test_run_name=self.state['test_run_name']))