Reporting
HTMLTestRunner report always showing previous reports, its not updating for other test suites.
Is there any other method of reporting rather than html test runner or xml test runner????
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Sikuli Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- 2012-07-18
- Last query:
- 2012-07-18
- Last reply:
- 2012-07-18
This question was reopened
- 2012-07-18 by Ankit Jain
Ankit Jain (ankit4655) said : | #1 |
Ankit Jain suggests this article as an answer to your question:
FAQ #1778: “Logging and reporting in Sikuli scripts”.
Ankit Jain (ankit4655) said : | #2 |
HTMLTestRunner report always showing previous reports, its not updating for other test suites.
Is there any other method of reporting rather than html test runner or xml test runner????
RaiMan (raimund-hocke) said : | #3 |
When talking about XXX-testRunner, then we are talking about unit testing.
This has nothing to do with the above mentioned faq.
--- HTMLTestRunner report always showing previous reports, its not updating for other test suites
pls. paste your script, to know your usage.
Ankit Jain (ankit4655) said : | #4 |
I need HTML report for the below script.
import unittest
import HTMLTestRunner
class TestA(unittest.
def setUp(self):
while not exists(
click("
click("
while not exists(
sleep(5)
click("
type("<email address hidden>\t")
type("testing")
click("
while not exists(
sleep(5)
click("
wait(2)
click("
wait(4)
type("JDBC Parameterizatio
click("Tra.png")
click("li_Ul.png")
click("
while not exists(
sleep(5)
for x in findAll(
click(x)
wait(1)
click("E.png")
exists(
while not exists(
sleep(5)
click("
wait("Doyouwaca
click("Yes.png")
wait("CheckingD
click("OK.png")
def testrun(self):
suite=unittest.
outfile=
runner=
runner.run(suite)
outfile.close()
i m always getting same error
ft1.1: Traceback (most recent call last):
File "C:\Users\
click(
FindFailed: FindFailed: can not find EmailID.png on the screen.
Line 7, in file C:\Users\
|
#5 |
--- i m always getting same error
It is a FindFailed error, saying, that sikuli cannot find the image "EmailID.png" on the screen (timing problem?)
--- your script looks strange
... since the block between the last statement of the class definition
sleep(5)
and
def testrun(self):
has no indentation, so it belongs to the main script and is run before the last code block
suite=unittest.
outfile=
runner=
runner.run(suite)
outfile.close()
which only executes the setUp() in TestA and then prints ABC.
So I guess, the above mentioned block of code should be a def testXXX, that should be run by the test runner after the setup() (since this opens your application).
Ankit Jain (ankit4655) said : | #6 |
Thanks RaiMan :)
that was indentation problem.
Ankit Jain (ankit4655) said : | #7 |
Thanks RaiMan, that solved my question.