You can translate the question and the replies:

How to verify '%Trace' in the DENODOTEST file

I have been reading through the documentation of **Trace** directive in [Denodo Testing Tool](https://community.denodo.com/docs/html/document/denodoconnects/6.0/Denodo%20Testing%20Tool%20-%20User%20Manual#h.hkd0pejmr21v). I need to access the 'staticO' element in my trace file. When I am accessing the 'staticO' element in the .DENDOTEST file by using the following code 'PLAN ABC.PLAN DEF.staticO'. An error message **java.util.NoSuchElementException: null** appears. **My trace file looks like this**:- PLAN ABC ( name = Execute PLAN DEF ( staticO = false ) ) **My DENODOTEST file looks like this**:- %TRACE PLAN ABC.PLAN DEF.staticO == false **I am receiving this error**:- Test FAILED. Test raised an unexpected java.util.NoSuchElementException: null *Thank you in advance for any help you can provide.*
user
15-11-2022 10:09:10 -0500
code

3 Answers

Hi, I was able to generate a **Trace plan** and check the Trace element in my local environment as per the steps in the [**Denodo Testing Tool**](https://community.denodo.com/docs/html/document/denodoconnects/8.0/en/Denodo%20Testing%20Tool%20-%20User%20Manual#h.hkd0pejmr21v) documentation and this documentation contains a example on how to use the [**trace directive**](https://community.denodo.com/docs/html/document/denodoconnects/8.0/en/Denodo%20Testing%20Tool%20-%20User%20Manual#h.hkd0pejmr21v:~:text=following%20is%20an-,example,-of%20several%20TRACE). Denodo uses the [**MVEL**](https://en.wikibooks.org/wiki/Transwiki:MVEL_Language_Guide) expression to look at the Trace elements. If the element of the trace contains a **string**, you could ensure that the string is enclosed within a **single quote** (‘’). **For example:** >%TRACE PLAN ABC.PLAN DEF.staticO == **‘false’** Hope this helps!
Denodo Team
16-11-2022 08:25:49 -0500
code
I checked with a **single quote**, **double quote** and **without quote** for false values. It is still not working. Could you please show me a sample example of your code?
user
16-11-2022 09:12:06 -0500
Hi, The error **java.util.NoSuchElementException: null** occurs when the element is not there in the particular path. From the given trace file I could see that PLAN ABC and PLAN DEF are at the same level in the hierarchy. Please make sure that you are accessing the staticO trace element with the correct hierarchy . I was able to access few of the trace element by specifying the correct hierarchy.I followed the given samples present in the [Denodo Testing Tool](https://community.denodo.com/docs/html/document/denodoconnects/8.0/en/Denodo%20Testing%20Tool%20-%20User%20Manual#h.hkd0pejmr21v) documentation. If you still need help and if you are a valid support user then you could raise a support case on [Denodo Support Site](https://support.denodo.com/MainPage.do) so that our support team can help you. Hope it helps.
Denodo Team
17-11-2022 07:39:22 -0500
code
You must sign in to add an answer. If you do not have an account, you can register here