Added screenshots for failed tests

Change-Id: Ia9101de37abe22f3d54799679f9bf6396931440b
This commit is contained in:
Timur Nurlygayanov
2013-10-26 02:15:13 +04:00
parent fdb000dbc9
commit 7960bd87fb
2 changed files with 5 additions and 7 deletions

View File

@@ -199,7 +199,6 @@ class _Utils(object):
_objRepoPath = join(getcwd(), 'resources', 'objrepo')
element_name = element_name.lower().replace(' ', '')
print "Element Name: " + element_name
inputElement = element_name.split('.')
if len(inputElement) == 1:
@@ -211,15 +210,10 @@ class _Utils(object):
name = inputElement[1]
fullFileName = join(_objRepoPath, fileName)
print "fullFileName " + fullFileName
conf = ConfigParser()
conf.read(fullFileName)
print "A: " + conf.get(str(name), 'type')
print "A: " + conf.get(name, 'type')
if not conf.has_section(name):
print name
return ['', None, '']
element_type = conf.get(name, 'type')

View File

@@ -2,7 +2,7 @@
Suite Setup
Suite Teardown Close All Browsers
Test Setup Open Browser ${url}
Test Teardown Close All Browsers
Test Teardown End Test
Library String
Library Boffin.WebUIlib # Boffin framework library
@@ -1089,3 +1089,7 @@ Delete environment "${name}" after test
Select "Delete Environment" for chosen environment "${name}"
User confirms deletion
Page should not contain element "${name}"
End Test
Run Keyword If Test Failed Capture Page Screenshot
Close All Browsers