Added screenshots for failed tests
Change-Id: Ia9101de37abe22f3d54799679f9bf6396931440b
This commit is contained in:
@@ -199,7 +199,6 @@ class _Utils(object):
|
|||||||
_objRepoPath = join(getcwd(), 'resources', 'objrepo')
|
_objRepoPath = join(getcwd(), 'resources', 'objrepo')
|
||||||
|
|
||||||
element_name = element_name.lower().replace(' ', '')
|
element_name = element_name.lower().replace(' ', '')
|
||||||
print "Element Name: " + element_name
|
|
||||||
inputElement = element_name.split('.')
|
inputElement = element_name.split('.')
|
||||||
|
|
||||||
if len(inputElement) == 1:
|
if len(inputElement) == 1:
|
||||||
@@ -211,15 +210,10 @@ class _Utils(object):
|
|||||||
name = inputElement[1]
|
name = inputElement[1]
|
||||||
|
|
||||||
fullFileName = join(_objRepoPath, fileName)
|
fullFileName = join(_objRepoPath, fileName)
|
||||||
print "fullFileName " + fullFileName
|
|
||||||
conf = ConfigParser()
|
conf = ConfigParser()
|
||||||
conf.read(fullFileName)
|
conf.read(fullFileName)
|
||||||
|
|
||||||
print "A: " + conf.get(str(name), 'type')
|
|
||||||
print "A: " + conf.get(name, 'type')
|
|
||||||
|
|
||||||
if not conf.has_section(name):
|
if not conf.has_section(name):
|
||||||
print name
|
|
||||||
return ['', None, '']
|
return ['', None, '']
|
||||||
element_type = conf.get(name, 'type')
|
element_type = conf.get(name, 'type')
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Suite Setup
|
Suite Setup
|
||||||
Suite Teardown Close All Browsers
|
Suite Teardown Close All Browsers
|
||||||
Test Setup Open Browser ${url}
|
Test Setup Open Browser ${url}
|
||||||
Test Teardown Close All Browsers
|
Test Teardown End Test
|
||||||
Library String
|
Library String
|
||||||
Library Boffin.WebUIlib # Boffin framework library
|
Library Boffin.WebUIlib # Boffin framework library
|
||||||
|
|
||||||
@@ -1089,3 +1089,7 @@ Delete environment "${name}" after test
|
|||||||
Select "Delete Environment" for chosen environment "${name}"
|
Select "Delete Environment" for chosen environment "${name}"
|
||||||
User confirms deletion
|
User confirms deletion
|
||||||
Page should not contain element "${name}"
|
Page should not contain element "${name}"
|
||||||
|
|
||||||
|
End Test
|
||||||
|
Run Keyword If Test Failed Capture Page Screenshot
|
||||||
|
Close All Browsers
|
||||||
|
|||||||
Reference in New Issue
Block a user