Every tester writes test cases however many times the test cases are rejected by reviewers because of bad quality, in order to write good test cases one should know what are the characteristics of a good test case.
A good test case has certain characteristics which are:
TIPS for writing good test cases
Tests only one thing
Always make sure that your test case tests only one thing, if you try to test multiple conditions in one test case it becomes very difficult to track results and errors.
Organize your test cases consistently
You can organize your test cases in many ways however you should always follow the same pattern to organize you test cases.
Write independent test cases
Your test cases should not have dependency on other test cases, i.e you should be able to execute your test case individually with having dependency on other test cases.
Write small test cases
Always mention purpose of each test case clearly in test case.
Varnish Cheat Sheet
Get the top request methods
varnishtop -i RxRequest
Top URLS that missed the cache.
varnishtop -i TxURL
Top URLS that HIT the cache.
varnishtop -i RxURL
All URLs that hit the cache in real time.
varnishlog -o VCL_call hit | grep RxURL
All URLs that MISSED the cache in real time
varnishlog -i TxURL
Look at an incoming client request of a specific URL:
varnishlog -c -o RxURL index.html
Look at a a backend request of a specific URL:
varnishlog -b -o TxURL index.html
See requests for one specific Hostname:
varnishlog -c -o RxHeader “Host: cirrii.com”
See the age of the cache objects for a specific hostname:
varnishlog -c -o RxHeader “Host: cirrii.com” | grep Age
nc -zv gateway.sandbox.push.apple.com 2195
Connection to gateway.sandbox.push.apple.com 2195 port [tcp/*] succeeded!
nc -w 5 -vz gateway.push.apple.com 2195
nc: connect to gateway.push.apple.com port 2195 (tcp) timed out: Operation now in progress
- how check tcp connection open