Highlighted
Absent Member.
Absent Member.
1333 views

The problem about create coverage report.

The problem about create coverage report.

I have a error when I create coverage report again after the source of program has been modified.
The error is [TC041E Matching source file not found.Program MUSJ2401. NOTE no source code available].
But the MUSJ2401.idy is in the current path which is I run the [cobtcreport tcresult.tcz].And I can create the
report at the first time.When I modified the source and create the report again,the error has occured.
The .idy file copy from the same path.
The default.tcf is[RESULT /home/admin/workspace/A20130501/unittest/coverage/tcresult.tcz].

Who can tell me why?

My operation flow is
[compile COBOL program]-[compile JVM COBOL program for test]-[run the JVM COBOL]-[create report](OK)-[modified COBOL program]-[compile COBOL program]-[compile JVM COBOL program for test]--[run the JVM COBOL]-[create report](error has occured)

The screen copy
[admin@rhcs32 coverage]$ ll
total 1692
-rw-rw-r--. 1 admin admin 1434 May 7 16:05 default.tcf
-rw-rw-r--. 1 admin admin 276736 May 8 15:58 MUSJ2401.idy
drwxrwxr-x. 2 admin admin 4096 May 8 15:46 report
-rw-rw-r--. 1 admin admin 44288 May 8 15:45 SCZY1010.idy
-rw-rw-r--. 1 admin admin 45568 May 8 15:45 SCZY1020.idy
-rw-rw-r--. 1 admin admin 44288 May 8 15:45 SCZY1160.idy
-rw-rw-r--. 1 admin admin 47872 May 8 15:45 SCZY1170.idy
-rw-rw-r--. 1 admin admin 45824 May 8 15:45 SCZY3002.idy
-rw-rw-r--. 1 admin admin 46848 May 8 15:45 SCZY4005.idy
-rw-rw-r--. 1 admin admin 45312 May 8 15:45 SCZY4023.idy
-rw-rw-r--. 1 admin admin 45056 May 8 15:45 SCZY4183.idy
-rw-rw-r--. 1 admin admin 44032 May 8 15:45 SCZY4903.idy
-rw-rw-r--. 1 admin admin 46080 May 8 15:45 SCZY5060.idy
-rw-rw-r--. 1 admin admin 44032 May 8 15:45 SCZY7010.idy
-rw-rw-r--. 1 admin admin 44544 May 8 15:45 SCZY7020.idy
-rw-rw-r--. 1 admin admin 44288 May 8 15:45 SCZY7040.idy
-rw-rw-r--. 1 admin admin 44800 May 8 15:45 SCZY7050.idy
-rw-rw-r--. 1 admin admin 49664 May 8 15:45 SCZY7060.idy
-rw-rw-r--. 1 admin admin 45312 May 8 15:45 SCZY7080.idy
-rw-rw-r--. 1 admin admin 45312 May 8 15:45 SCZY7090.idy
-rw-rw-r--. 1 admin admin 45312 May 8 15:45 SCZY7100.idy
-rw-rw-r--. 1 admin admin 44544 May 8 15:45 SCZY7180.idy
-rw-rw-r--. 1 admin admin 45312 May 8 15:45 SCZY7200.idy
-rw-rw-r--. 1 admin admin 45824 May 8 15:45 SCZY7210.idy
-rw-rw-r--. 1 admin admin 44288 May 8 15:45 SCZY7220.idy
-rw-rw-r--. 1 admin admin 45568 May 8 15:45 SCZY9001.idy
-rw-rw-r--. 1 admin admin 198400 May 8 15:45 SUSJ2401.idy
-rw-rw-r--. 1 admin admin 98304 May 8 15:45 SUSJ2402.idy
-rw-rw-r--. 1 admin admin 2065 May 8 15:59 tcreport.tmp
-rw-rw-r--. 1 admin admin 2065 May 8 15:50 tcresult.tcz
-rw-rw-r--. 1 admin admin 44800 May 8 15:45 TIUSWK01.idy
[admin@rhcs32 coverage]$ cobtcreport tcresult.tcz
TC041E Matching source file not found.
Program MUSJ2401. NOTE no source code available
Program SCZY1170. processed normally
Program SCZY7090. processed normally
Program SCZY7100. processed normally
Program SUSJ2401. processed normally
Listing of reports produced is in:
/home/admin/workspace/A20130501/unittest/coverage/TCIndex.htm

Thanks!

Tags (1)
0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: The problem about create coverage report.

I don't understand the steps that you have listed here as you mention that you are running JVM COBOL. TESTCOVER is only supported with native applications and is not supported in JVM COBOL programs.

The error is actually not referring to the .idy file but the original source file that is used in compiling the program. The .idy file contains the full path name to the source file used in the compile and the error means that it cannot locate this file (.cbl perhaps).

Where is the source file located?

Thanks.

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: The problem about create coverage report.

Hi,Chris

Thank you for reply.

I listed all of my operate because I think maybe the sequence is the key to solve the error.Maybe it's a wrong idea.

I compile the native cobol(.pco PRO*COBOL) by TESTCOVER and I write a JVM COBOL with JUnit to calling it(the native cobol).

The source is  in the [/home/admin/workspace/A20130501/src/rx/main/].And I don't move it(.pco).

And I copy the .idy from [/home/admin/workspace/A20130501/bin/rx/main/]to[/home/admin/workspace/A20130501/unittest/coverage].

When the error(TC041E) occurred if I wait for a while to create coverage report again then it will be OK. During this time I don't done anything.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.