Code coverage NAV 2013 with Test Toolset.
thomast
Member Posts: 102
Hi Everybody,
I am trying to figure out where in the "Production Order ->Refresh"-routine the components are added to the production order, and thought I would use Code Coverage to figure this out, but with no luck. Any ideas? Alternative ideas? Below is a description of what I did:
So I downloaded the Test Toolset for NAV2013 (see here: viewtopic.php?t=55560 ) imported the fobs and generated the code covered in the Code Coverage window. So far so good. But this is where I got stuck. I now wanted to search this very long code piece for the point where NAV fills out records in the "Prod. Order Component" (Table 5407) so I tried exporting the code into and XML document and searched for one of the fields that NAV fills out, for example "Prod. Line Order No.". But with no result. It seems that the code coverage tool does not actually cover all code or what is going on here?
Any help is appreciated.
Thomas.
I am trying to figure out where in the "Production Order ->Refresh"-routine the components are added to the production order, and thought I would use Code Coverage to figure this out, but with no luck. Any ideas? Alternative ideas? Below is a description of what I did:
So I downloaded the Test Toolset for NAV2013 (see here: viewtopic.php?t=55560 ) imported the fobs and generated the code covered in the Code Coverage window. So far so good. But this is where I got stuck. I now wanted to search this very long code piece for the point where NAV fills out records in the "Prod. Order Component" (Table 5407) so I tried exporting the code into and XML document and searched for one of the fields that NAV fills out, for example "Prod. Line Order No.". But with no result. It seems that the code coverage tool does not actually cover all code or what is going on here?
Any help is appreciated.
Thomas.
0
Comments
-
Hi Again. I guess I solved my immediate problem: I set a break point on the OnValidate Trigger of the field "Item No." in the table "Prod. Order Component". But I am still curious about why the code coverage doesn't really seem to work for me.
Thomas.0 -
it works fine for me. make sure you are running it in the same session. What i do is add the page to the menusuite and open it from rtc search window.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
