Friday, February 7, 2020

test1


Load Testing vs Stress Testing


Stress Testing: Testing is to find the maximum load the web server can handle.


https://stackoverflow.com/questions/9750509/load-vs-stress-testing


If an app is build for 500 users, then for load testing we check up to 500 users and for stress testing we check greater than 500.


Bearer Authentication

Bearer Authentication

Bearer authentication (also called token authentication) is an HTTP authentication scheme that involves security tokens called bearer tokens. The name “Bearer authentication” can be understood as “give access to the bearer of this token.” The bearer token is a cryptic string, usually generated by the server in response to a login request. The client must send this token in the Authorization header when making requests to protected resources:

https://swagger.io/docs/specification/authentication/bearer-authentication/

  1. Authorization: Bearer <token>

Swagger

Throughput , Through put vs Latency vs Response time vs Bandwidth vs Processing time

Through put : TPS transaction per second. Hits per second. How many transaction the server can handle per second.

Response time: first byte sent from browser to last byte received from server.

Bandwidth:  is how fast the device can send data over a cable.

Processing time: First byte received by server and last byte sent from server. (Ignoring sending response to client/Browser).

Latency: Time spend over the network. Time taken Byte sent from Client  reached to Server. Wire/network cable time.


Wednesday, February 5, 2020

Robot framework executing tests in command prompt

set root=C:\Project\pradeep\qa_automation_tfs_working
pushd %root%
robot -t "TestCase_P2_PCS_Voyage_Creation" -d .//reportfolder -s vesseloperation -o output.xml .
pause



Run Full Suite:

set root=C:\Project\qa_automation_tfs
pushd %root%
robot -i f -i fr -d .//report_temp1 -s suiteName1 -o output.xml .
robot -i f -i wh -d .//report_temp2 -s suiteName2 -o output.xml .
pause


Run Full Suite:

set root=C:\Project\testfolder
pushd %root%
robot --include f -d .//ReportFolder1 -s xyzTestSuiteName-o Output.xml TestSuite & CD Report & rebot --name [All-Modules] *.xml & CD ..
pause


Multiple Tags
set root=C:\Project\testfolder
pushd %root%
robot -i tagname1 -i tagname2 -d .//report_temp1 -s margo_fr -o output.xml .
robot -i tagname1 -i tagname2 -d .//report_temp2 -s margo_wh -o output.xml .
pause


Tag Name:
set root=C:\TestProjectfolder
pushd %root%
robot -i T2211111 -d .//report_temp -s suiteName -o output.xml .
pause


Test Case Name:
set root=C:\TestProjectfolder
pushd %root%
robot -t "testname" -d .//reportfolder -s suiteName -o output.xml .
pause


Import Python Class in Robot Class or File
https://stackoverflow.com/questions/27603242/how-to-import-and-use-user-defined-classes-in-robot-framework-with-python



https://www.blazemeter.com/blog/robot-framework-the-ultimate-guide-to-running-your-tests/

https://www.google.com/search?q=run+robot+framework+from+cmd&rlz=1C1GCEA_enIN832IN832&oq=run+robot+fr&aqs=chrome.3.0j69i57j0l5j69i60.9209j0j4&sourceid=chrome&ie=UTF-8#kpvalbx=_soJJXvm0EoqmUMS8nPgC19


open command and goto the location of project

run single test
robot -t testname suitefile

run multiple tests
robot -t test1 -t test2 suitefile

run tests with tags
robot --include tagname suitefile
robot -i tagName suitefile

run all tests in a test suitefile
robot suitefile.robot



List of GUI tools:


List of GUI tools:

https://en.wikipedia.org/wiki/List_of_GUI_testing_tools



http://www.methodsandtools.com

JMeter Simple Controller

  Simple Controller is just a  container  for user request.