Page 1 of 1

Need help with rxlog.data files

Posted: Wed Dec 10, 2014 2:19 pm
by rampage333
Hi guys,

i started doing automation tests via codes only, but when i run, it was successful like it was suppose to be, but strangely the report itself does not have the pie chart to show how many x successful. or my system information on the top. Then when i check my project, there isn't any rxlog.data files.

-> i disable the reports at the testsuite options.
-> manually "setup" report, via Report.setup(ReportLevel.Log, "aaa.rxlog", true,false)
TestCaseBreakdownFormat.JPG
TestReportFormat.JPG
thanks in advance.

Re: Need help with rxlog.data files

Posted: Wed Dec 10, 2014 2:58 pm
by krstcs
You aren't using a test suite and test cases. The pie chart is based on the number of successful/failed/skipped test cases in the test suite. If you don't have a suite and cases then there is nothing for the chart to use as a basis for the numbers.

Re: Need help with rxlog.data files

Posted: Wed Dec 10, 2014 3:39 pm
by rampage333
if so..is there a way to create a testcase via code only?

Re: Need help with rxlog.data files

Posted: Wed Dec 10, 2014 3:48 pm
by krstcs
I don't see any way to instantiate those outside of using Ranorex Studio.

Ranorex API Documentation

Re: Need help with rxlog.data files

Posted: Wed Dec 10, 2014 4:05 pm
by rampage333
i'm still using ranorex studio IDE not visual studio ><

Re: Need help with rxlog.data files

Posted: Wed Dec 10, 2014 4:21 pm
by krstcs
My suggestion, then, would be to actually use the built-in mechanisms that Ranorex Studio already has. Create your tests using the TestSuites and TestCases the way they are intended instead of using User-code for test flow logic. Use modules/code for action logic, not business logic.

Other than that, I'm afraid I don't have any other advice.

Re: Need help with rxlog.data files

Posted: Thu Dec 11, 2014 2:08 pm
by Support Team
Hi rampage333,

If you create your report manually with Report.Setup(…) the old Ranorex report format (2.x) is used. This format differs from our new report.

Regarding your second question
You can create your own test cases in code with the methods that are mentioned in this posting
but as krstcs already said, it is recommended using the built-in functionality of Ranorex Studio to create and manage your test cases.

Regards,
Markus (S)