PHP Classes

File: testcases/php_net.xml

Recommend this page to a friend!
  Classes of zent00   Curly   testcases/php_net.xml   Download  
File: testcases/php_net.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Curly
Test sites verifying if responses match XML specs
Author: By
Last change: cleanup
Date: 4 years ago
Size: 2,011 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="UTF-8"?> <cases> <case id="1" name="php_net"> <curl_setopt> <CURLOPT_URL>https://www.php.net</CURLOPT_URL> <CURLOPT_CERTINFO>1</CURLOPT_CERTINFO> <CURLOPT_SSL_VERIFYPEER>0</CURLOPT_SSL_VERIFYPEER> </curl_setopt> <checks> <status_code> <code>200</code> <onfail_status>WARNING</onfail_status> </status_code> <response_time> <time>2</time> </response_time> <matchpattern> <pattern>/PHP is a popular general-purpose scripting language/</pattern> <source>curl</source> <onfail_status>WARNING</onfail_status> </matchpattern> <matchpattern> <pattern>/set-cookie/</pattern> <source>curlverbose</source> <onfail_status>WARNING</onfail_status> <errormessage>0</errormessage> </matchpattern> <nomatchpattern> <pattern>/nomatchpattern/</pattern> <source>curl</source> </nomatchpattern> <matchpatterncount> <pattern>/Get Involved/i</pattern> <matchcount>1</matchcount> <source>curl</source> </matchpatterncount> <parsepattern> <pattern><![CDATA[/<link rel="alternate" type="(application\/atom\+xml)" href="(.*)" title="PHP Release feed">/]]></pattern> <source>curl</source> </parsepattern> <primary_ip> <ip>185.85.0.29</ip> </primary_ip> <redirect_count> <count>0</count> </redirect_count> </checks> </case> <case id="2" name="php_feed"> <curl_setopt> <!-- dynamic URL call with get_parsepattern function - @params: testcasefile:caseid:parsepatternid:patternid --> <CURLOPT_URL>{get_parsepattern:php_net.xml:1:1:2}</CURLOPT_URL> <CURLOPT_SSL_VERIFYPEER>0</CURLOPT_SSL_VERIFYPEER> </curl_setopt> <checks> <status_code> <code>200</code> <onfail_status>WARNING</onfail_status> </status_code> <matchpattern> <pattern>/There is a new PHP release in town/i</pattern> <source>curl</source> </matchpattern> <primary_ip> <ip>185.85.0.29</ip> </primary_ip> <response_time> <time>2</time> </response_time> </checks> </case> </cases>