curl -s localhost:8000/api/v1/ | python -m json.tool
- json prettify
Ok esta imagen represeta cuando encuentras de donde viene el bug que llevas mas de una semana buscandolo y te das cuenta que era una coma en el js.
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