[UTC][autofill][ACR-1424] Add TCs for setting autofill hint in fill response 12/210112/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 16 Jul 2019 02:22:20 +0000 (11:22 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 16 Jul 2019 02:22:20 +0000 (11:22 +0900)
Change-Id: Ied410bb3e70160652c3a53e6e76cb5078ab5b7a7
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/utc/capi-ui-autofill/tct-capi-ui-autofill-core_mobile.h
src/utc/capi-ui-autofill/tct-capi-ui-autofill-core_tizeniot.h
src/utc/capi-ui-autofill/tct-capi-ui-autofill-core_wearable.h
src/utc/capi-ui-autofill/utc-capi-ui-autofill-common.c

index b533d5cd7d47514118313ec1e9963d587fb64443..eceef3085d32216ab2e5293be198f359f3225e92 100644 (file)
@@ -206,6 +206,12 @@ extern int utc_autofill_fill_response_item_set_presentation_text_n(void);
 extern int utc_autofill_fill_response_item_get_presentation_text_p(void);
 extern int utc_autofill_fill_response_item_get_presentation_text_n(void);
 
+extern int utc_autofill_fill_response_item_set_autofill_hint_p(void);
+extern int utc_autofill_fill_response_item_set_autofill_hint_n(void);
+
+extern int utc_autofill_fill_response_item_get_autofill_hint_p(void);
+extern int utc_autofill_fill_response_item_get_autofill_hint_n(void);
+
 extern int utc_autofill_save_item_create_p(void);
 extern int utc_autofill_save_item_create_n(void);
 extern int utc_autofill_save_item_destroy_p(void);
@@ -501,6 +507,12 @@ testcase tc_array[] = {
     {"utc_autofill_fill_response_item_get_presentation_text_p", utc_autofill_fill_response_item_get_presentation_text_p, utc_capi_ui_autofill_common_startup, utc_capi_ui_autofill_common_cleanup},
     {"utc_autofill_fill_response_item_get_presentation_text_n", utc_autofill_fill_response_item_get_presentation_text_n, utc_capi_ui_autofill_common_startup, utc_capi_ui_autofill_common_cleanup},
 
+    {"utc_autofill_fill_response_item_set_autofill_hint_p", utc_autofill_fill_response_item_set_autofill_hint_p, utc_capi_ui_autofill_common_startup, utc_capi_ui_autofill_common_cleanup},
+    {"utc_autofill_fill_response_item_set_autofill_hint_n", utc_autofill_fill_response_item_set_autofill_hint_n, utc_capi_ui_autofill_common_startup, utc_capi_ui_autofill_common_cleanup},
+
+    {"utc_autofill_fill_response_item_get_autofill_hint_p", utc_autofill_fill_response_item_get_autofill_hint_p, utc_capi_ui_autofill_common_startup, utc_capi_ui_autofill_common_cleanup},
+    {"utc_autofill_fill_response_item_get_autofill_hint_n", utc_autofill_fill_response_item_get_autofill_hint_n, utc_capi_ui_autofill_common_startup, utc_capi_ui_autofill_common_cleanup},
+
     {"utc_autofill_save_item_create_p", utc_autofill_save_item_create_p, utc_capi_ui_autofill_common_startup, utc_capi_ui_autofill_common_cleanup},
     {"utc_autofill_save_item_create_n", utc_autofill_save_item_create_n, utc_capi_ui_autofill_common_startup, utc_capi_ui_autofill_common_cleanup},
     {"utc_autofill_save_item_destroy_p", utc_autofill_save_item_destroy_p, utc_capi_ui_autofill_common_startup, utc_capi_ui_autofill_common_cleanup},
index b533d5cd7d47514118313ec1e9963d587fb64443..bb129ef31cdaa185e5fd77d0e10e332302e817c4 100644 (file)
@@ -206,6 +206,12 @@ extern int utc_autofill_fill_response_item_set_presentation_text_n(void);
 extern int utc_autofill_fill_response_item_get_presentation_text_p(void);
 extern int utc_autofill_fill_response_item_get_presentation_text_n(void);
 
+extern int utc_autofill_fill_response_item_set_autofill_hint_p(void);
+extern int utc_autofill_fill_response_item_set_autofill_hint_n(void);
+
+extern int utc_autofill_fill_response_item_get_autofill_hint_p(void);
+extern int utc_autofill_fill_response_item_get_autofill_hint_n(void);
+
 extern int utc_autofill_save_item_create_p(void);
 extern int utc_autofill_save_item_create_n(void);
 extern int utc_autofill_save_item_destroy_p(void);
index b533d5cd7d47514118313ec1e9963d587fb64443..bb129ef31cdaa185e5fd77d0e10e332302e817c4 100644 (file)
@@ -206,6 +206,12 @@ extern int utc_autofill_fill_response_item_set_presentation_text_n(void);
 extern int utc_autofill_fill_response_item_get_presentation_text_p(void);
 extern int utc_autofill_fill_response_item_get_presentation_text_n(void);
 
+extern int utc_autofill_fill_response_item_set_autofill_hint_p(void);
+extern int utc_autofill_fill_response_item_set_autofill_hint_n(void);
+
+extern int utc_autofill_fill_response_item_get_autofill_hint_p(void);
+extern int utc_autofill_fill_response_item_get_autofill_hint_n(void);
+
 extern int utc_autofill_save_item_create_p(void);
 extern int utc_autofill_save_item_create_n(void);
 extern int utc_autofill_save_item_destroy_p(void);
index cb20dabe4c96e005fcdc689f13f7454e1214269e..5618d7008342af3a9376c26a70bab2a21105c974 100644 (file)
@@ -2836,6 +2836,75 @@ int utc_autofill_fill_response_item_get_presentation_text_n(void)
     return 0;
 }
 
+/**
+ * @testcase        utc_autofill_fill_response_item_set_autofill_hint_p
+ * @since_tizen     5.5
+ * @description     Positive UTC of the function that sets autofill hint in autofill fill response item.
+ */
+int utc_autofill_fill_response_item_set_autofill_hint_p(void)
+{
+    autofill_fill_response_item_h res_it_h;
+    int ret;
+
+    ret = autofill_fill_response_item_create(&res_it_h);
+    assert_eq(ret, AUTOFILL_ERROR_NONE);
+
+    ret = autofill_fill_response_item_set_autofill_hint(res_it_h, AUTOFILL_HINT_NAME);
+    autofill_fill_response_item_destroy(res_it_h);
+    assert_eq(ret, AUTOFILL_ERROR_NONE);
+
+    return 0;
+}
+
+/**
+ * @testcase        utc_autofill_fill_response_item_set_autofill_hint_p
+ * @since_tizen     5.5
+ * @description     Negative UTC of the function that sets autofill hint in autofill fill response item.
+ */
+int utc_autofill_fill_response_item_set_autofill_hint_n(void)
+{
+    int ret;
+
+    ret = autofill_fill_response_item_set_autofill_hint(NULL, AUTOFILL_HINT_NAME);
+    assert_eq(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+
+    return 0;
+}
+
+/**
+ * @testcase        utc_autofill_fill_response_item_get_autofill_hint_p
+ * @since_tizen     5.5
+ * @description     Positive UTC of the function that gets autofill hint in autofill fill response item.
+ */
+int utc_autofill_fill_response_item_get_autofill_hint_p(void)
+{
+    autofill_fill_response_item_h res_it_h;
+    autofill_hint_e autofill_hint;
+    int ret;
+
+    ret = autofill_fill_response_item_create(&res_it_h);
+    assert_eq(ret, AUTOFILL_ERROR_NONE);
+
+    ret = autofill_fill_response_item_get_autofill_hint(res_it_h, &autofill_hint);
+    autofill_fill_response_item_destroy(res_it_h);
+    assert_eq(ret, AUTOFILL_ERROR_NONE);
+
+    return 0;
+}
+
+/**
+ * @testcase        utc_autofill_fill_response_item_get_autofill_hint_n
+ * @since_tizen     5.5
+ * @description     Negative UTC of the function that gets autofill hint in autofill fill response item.
+ */
+int utc_autofill_fill_response_item_get_autofill_hint_n(void)
+{
+    autofill_hint_e autofill_hint;
+    int ret = autofill_fill_response_item_get_autofill_hint(NULL, &autofill_hint);
+    assert_eq(ret, AUTOFILL_ERROR_INVALID_PARAMETER);
+    return 0;
+}
+
 // save info
 /**
  * @testcase        utc_autofill_save_item_create_p