Thursday, 29 September 2011

How to search files in unix/linux env


find PATH -name 'FILE.extn'

  • find: Find is a command 
  • PATH: Where do you want to search. /home will focus the search in home directory. If you are not sure about the path, mention /. This symbol stands of root. All directories will be searched including mounted filesystems.
  • -name: This option makes the search case sensitive. -iname option to find something regardless of case.
  • 'FILE.extn': File name that you are searching
Example:


  1. find / -name 'gc.dat'
  2. find /home -name 'gc.dat'
  3. find / -iname 'gc.dat'

Wednesday, 28 September 2011

Performance Testing API(s)





Functional Performance Testing - Single user access API over a period of time and captures response time during each attempt. Average response time during the time period is taken as baseline for rest of the tests.

Load Testing - Web API(s) is loaded with certain number of users to achieve targeted TPS (Transactions per sec). Typically this test is done after establishing a baseline for each transaction, and finally load testing the entire group of transactions.

Stress Testing - Users are ramped up until a failure occurs. This helps us identify breaking point of the application and to establish margin between expected traffic and failure point.

Soak (Endurance) Testing - API(s) are subjected to typical user load over a extended time with occasional spikes. The intend here is to identify problems that may occur only after a extended uptime.

Scalability TestingAPI(s) are subjected to varying user load over a period of time. The intend here is to identify the optimum user load. Here users are being varied. Scalability test can be performed even by varying any system configuration or hardware.

What does 403 error really mean?



            Every request get a status message from the server, 403 means 'Access Forbidden'. But what most of us don't know is the meaning of its sub-status. Below list gives us a clear idea of what it really means
  • 403.1 - Execute access forbidden.
  • 403.2 - Read access forbidden.
  • 403.3 - Write access forbidden.
  • 403.4 - SSL required.
  • 403.5 - SSL 128 required.
  • 403.6 - IP address rejected.
  • 403.7 - Client certificate required.
  • 403.8 - Site access denied.
  • 403.9 - Too many users.
  • 403.10 - Invalid configuration.
  • 403.11 - Password change.
  • 403.12 - Mapper denied access.
  • 403.13 - Client certificate revoked.
  • 403.14 - Directory listing denied.
  • 403.15 - Client Access Licenses exceeded.
  • 403.16 - Client certificate is untrusted or invalid.
  • 403.17 - Client certificate has expired or is not yet valid.
Source: www.wikipedia.org