diff --git a/hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js b/hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js index 7c861e253e1b9c21c3e9ede32ae17295739b7d98..056453762a5b979c905778cf8b95c4425d2c490d 100644 --- a/hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js +++ b/hiviewdfx/bytracetest/src/main/js/test/bytrace_test.js @@ -201,6 +201,22 @@ describe("BytraceTest", function () { console.info("------DFX_DFR_Bytrace_0500 end------"); done(); }) + + it("DFX_DFR_Bytrace_0600", 0, async function (done) { + console.info("-------DFX_DFR_Bytrace_0600 start--------"); + let flag = true; + try { + bytrace.startTrace("funcA", 111, undefined); + expect(flag).assertTrue(); + } catch (err) { + flag = false; + console.info("DFX_DFR_Bytrace_0600 fail!"); + console.info("DFX_DFR_Bytrace_0600 err = " + err); + expect(flag).assertTrue(); + } + console.info("------DFX_DFR_Bytrace_0600 end------"); + done(); + }) }) } \ No newline at end of file