diff --git a/hiviewdfx/hitracechaintest/entry/src/main/ets/MainAbility/test/ByTraceHiDebugJsunit.test.ets b/hiviewdfx/hitracechaintest/entry/src/main/ets/MainAbility/test/ByTraceHiDebugJsunit.test.ets
index eb72a746a4ac15a2f8183423f0f127cb02840e42..8bc7c69c630e8a7cecd2b6c14d01d0912b3446ef 100644
--- a/hiviewdfx/hitracechaintest/entry/src/main/ets/MainAbility/test/ByTraceHiDebugJsunit.test.ets
+++ b/hiviewdfx/hitracechaintest/entry/src/main/ets/MainAbility/test/ByTraceHiDebugJsunit.test.ets
@@ -115,7 +115,7 @@ export default function byTraceHiDebugJsunit() {
     it('DFX_HiLog_LogLevel_WARN_0100', 0, async function (done) {
       console.log("************* DFX_HiLog_LogLevel_WARN_0100 Test start*************");
       try {
-        expect(5).assertEqual(hiLog.WARN);
+        expect(5).assertEqual(hiLog.LogLevel.WARN);
       } catch (error) {
         expect().assertFail();
       }
@@ -131,7 +131,7 @@ export default function byTraceHiDebugJsunit() {
     it('DFX_HiLog_LogLevel_ERROR_0100', 0, async function (done) {
       console.log("************* DFX_HiLog_LogLevel_ERROR_0100 Test start*************");
       try {
-        expect(6).assertEqual(hiLog.ERROR);
+        expect(6).assertEqual(hiLog.LogLevel.ERROR);
       } catch (error) {
         expect().assertFail();
       }
@@ -147,7 +147,7 @@ export default function byTraceHiDebugJsunit() {
     it('DFX_HiLog_LogLevel_FATAL_0100', 0, async function (done) {
       console.log("************* DFX_HiLog_LogLevel_FATAL_0100 Test start*************");
       try {
-        expect(7).assertEqual(hiLog.FATAL);
+        expect(7).assertEqual(hiLog.LogLevel.FATAL);
       } catch (error) {
         expect().assertFail();
       }