{"id":4905,"date":"2014-07-14T15:11:01","date_gmt":"2014-07-14T19:11:01","guid":{"rendered":"http:\/\/www.webperformance.com\/load-testing-tools\/blog\/?page_id=4905"},"modified":"2016-02-26T18:40:32","modified_gmt":"2016-02-26T22:40:32","slug":"configuring-conditions","status":"publish","type":"page","link":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/articles\/real-browser-manual\/building-a-testcase\/configuring-conditions\/","title":{"rendered":"Configuring Conditions"},"content":{"rendered":"<p>A <em>condition<\/em> is an expression that returns true or false when evaluated. Conditions are used in various ways in testcases, such as <a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/real-browser-manual\/building-a-testcase\/adding-verification\/\">verification<\/a> and <a title=\"How to wait for an element before proceeding\" href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/real-browser-manual\/building-a-testcase\/element-before-proceeding\/\">completion conditions<\/a>.<\/p>\n<p>When a condition is created, it will look something like:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5556\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2014\/07\/ConditionStart.jpg\" alt=\"ConditionStart\" width=\"436\" height=\"21\" \/><\/p>\n<p>There are two basic classes of conditions:<\/p>\n<ul>\n<li>Element state &#8211; evaluates the state of a specific element<\/li>\n<li>Comparison &#8211; compares two values<\/li>\n<\/ul>\n<p>The example above is an element state condition &#8211; it will locate an element and return true if the element is visible.<\/p>\n<p>Comparison conditions check two values for equality, contains, and Regular Expression matches. The two values can be any of the supported <a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/data-sources\/\">data sources<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A condition is an expression that returns true or false when evaluated. Conditions are used in various ways in testcases, such as <a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/real-browser-manual\/building-a-testcase\/adding-verification\/\">verification<\/a> and <a title=\"How to wait for an element before proceeding\" href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/real-browser-manual\/building-a-testcase\/element-before-proceeding\/\">completion conditions<\/a>.<br \/>\nWhen a condition is created, it will look something like:<\/p>\n<p>There are two basic classes of conditions:<\/p>\n<p>Element state &#8211; evaluates the state of a specific element<br \/>\nComparison &#8211; compares two values<\/p>\n<p>The example above is an element state condition &#8211; it will locate an element and return true if the element is visible.<br \/>\nComparison conditions check two values for equality, contains, and Regular Expression matches. The two values can &hellip; <a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/articles\/real-browser-manual\/building-a-testcase\/configuring-conditions\/\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":4859,"menu_order":5,"comment_status":"open","ping_status":"open","template":"manual-page.php","meta":{"footnotes":""},"class_list":["post-4905","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/comments?post=4905"}],"version-history":[{"count":3,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4905\/revisions"}],"predecessor-version":[{"id":5557,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4905\/revisions\/5557"}],"up":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4859"}],"wp:attachment":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/media?parent=4905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}