Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Forum Post: Verification statement insert before WebPageSubmit

$
0
0
Hi All, We are using SilkPerformer 15.5.  We are creating a simple log in and log out script.  After log in, we will check if the Logout link appear in the homepage to ensure that the login is successfully. As you will see from the below,  we have this line to check the logout link (WebVerifyHtml("Logout ", 1, WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_EQUAL | WEB_FLAG_CASE_SENSITIVE, NULL, SEVERITY_ERROR,       nVerifyHtmlResult1);) We insert this verification from the TrueLog after the script is recorded.  From the recorded script below, it seems that the statement is inserted before the "WebPageSubmit("loginForm", LOGINFORM001, "test")" statement.   That seems like that the verification will be done even before the user logs into the application.  But the check is working when we re-run it.  Can anyone explain why is that?  We are thinking that the WebVerifyHtml statement should insert after the WebPageSubmit("loginForm", LOGINFORM001, "test") which means the check is done after the login. Thank you!  MeasureStart("tLogin1"); WebPageAddUrl("images/header/header-bg-long.png"); WebPageAddUrl("images/header/header-logo.png"); WebPageAddUrl("images/jquery/ui-bg_glass_75_dadada_1x400.png"); WebPageAddUrl("images/general/nav-bullet.jpg"); WebPageAddUrl("images/jquery/ui-bg_highlight-soft_100_7a98d4_1x100.png"); WebPageAddUrl("images/jquery/tablesoter_bg.gif"); // Redirecting http://test/index.cfm?page=user.loginSubmit // - (redirection) http://test/index.cfm?page=test.home // Info: HTTP status "404 Not Found" for URLs: // http://test/lib/jquery.metadata.js // http://test/lib/ckeditor/adapters/jquery.js WebIgnoreServerError(404, SEVERITY_INFORMATIONAL, 2); WebVerifyHtml("Logout ", 1, WEB_FLAG_IGNORE_WHITE_SPACE | WEB_FLAG_EQUAL | WEB_FLAG_CASE_SENSITIVE, NULL, SEVERITY_ERROR,       nVerifyHtmlResult1); WebPageSubmit("loginForm", LOGINFORM001, "test"); // Form 1 MeasureStop("tLogin1");

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>