Hard assertions:
When a hard assertion fails, it throws out an exception immediately and the code after the assertion shouldn't be excuted,the test case is failed.
Soft assertions:
When a soft assertion fails, it does not throw out an exception, and would continue with the next steps after the soft assertion.
When to use hard assertions?
When a step in the test is very important, if this step fails,...
SOAP and REST
Simple Object Access Protocol (SOAP) and Representational State Transfer (REST) are two answers to the same question: how to access Web services.
SOAP is a standards-based Web services access protocol that has been around for a while and enjoys all of the benefits of long-term use. Originally developed...
Try Catch in c#
When I was automating my test case today, I found an interesting thing: The case was failed, but it was reported "passed" in my test report!
My lead and I checked it carefully, then we found that as I created a test log in for the case, the LogStatus.Info is true, so in test report, the case's status was reported as "Pass" . But Actually, because an error occured, the case didn't go to the validation...
Examples of a same message written in XML & JSON
XML is short for Extensible Markup Language.
JSON is short for JavaScript Object Notation.
Message can be written in both XML and JSON . There're examples of the same message("menu") in XML and JSON:
The text expressed as XML:
<menu id="file" value="File">
<popup>
<menuitem value="New" onclick="CreateNewDoc()" />
<menuitem...
Subscribe to:
Posts (Atom)