e_test_event: send name of testcase when starts test 10/323510/1
authorJunseok Kim <juns.kim@samsung.com>
Tue, 29 Apr 2025 12:02:52 +0000 (21:02 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Tue, 29 Apr 2025 12:04:48 +0000 (21:04 +0900)
Change-Id: I58b5097d6968b441d6669db2e0c1babc5470979a

src/e_test_base.cpp
src/e_test_event.cpp
src/e_test_event.h

index 1a66a6f79b6b0fdc29589cfa73bd1afe533246bb..5fcb134fe544ba5198753832f3afbe4dcb707443 100644 (file)
@@ -8,8 +8,10 @@ using ::testing::Test;
 
 etTCBase::etTCBase()
 {
+   std::string testCaseName = ::testing::UnitTest::GetInstance()->current_test_info()->test_case_name();
+   std::string testName = ::testing::UnitTest::GetInstance()->current_test_info()->name();
    etRunner::get().flushEventQueue();
-   etRunner::get().setTCStart();
+   etRunner::get().setTCStart(testCaseName + "." + testName);
 }
 
 etTCBase::~etTCBase()
index 2df28873f8eab243fb8d1d6a3697f2f204f8c714..4d03f4e4d7cdec353f6416fa47e4e08d4f6e7d7b 100644 (file)
@@ -830,7 +830,7 @@ etRunner::getAuxHintValue(etWin *tw, int hint_id)
 }
 
 Eina_Bool
-etRunner::setTCStart()
+etRunner::setTCStart(std::string tc_name)
 {
    Eldbus_Pending *p = NULL;
    Eina_Bool res = EINA_FALSE;
@@ -840,7 +840,8 @@ etRunner::setTCStart()
                          _cb_method_set_tc_start_end,
                          &res,
                          -1,
-                         "");
+                         "s",
+                         tc_name.c_str());
    EINA_SAFETY_ON_NULL_GOTO(p, err);
 
    work();
index f459312ea6fdfc7e7614166b6d77d04788244d3f..90b745038a3a2f3f02d6592e3ead43e7950e495b 100644 (file)
@@ -305,7 +305,7 @@ public:
    int           generateAuxHint(etWin *tw, const char *hint_key, const char *hint_val);
    int           getAuxHintID(etWin *tw, const char *hint_key);
    std::string   getAuxHintValue(etWin *tw, int hint_id);
-   Eina_Bool     setTCStart();
+   Eina_Bool     setTCStart(std::string tc_name);
    Eina_Bool     setTCEnd();
    Eina_Bool     setTCTimeout(Eina_Bool set, int timeout);
    Eina_Bool     getWinInfo(etWin *tw);