0% found this document useful (0 votes)
1K views8 pages

Artillery - API Freighting Dump

The document contains questions and answers related to Artillery testing framework. Some key points include: - Artillery can be installed on Nodejs v3 using 'npm install artillery' command. - Target, phases, and priority define the APIs and structure of the test script. Target URL, phases for recurring requests, and priority of phase execution. - Common requests like GET, PUT, POST are used to test different CRUD operations and expected success response codes like 200, 201. - Variables can be defined and accessed in the artillery config or script files. Reports are generated in JSON format and can be viewed or converted to HTML. - Debugging options are available for HTTP requests, web sockets using artillery

Uploaded by

h
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views8 pages

Artillery - API Freighting Dump

The document contains questions and answers related to Artillery testing framework. Some key points include: - Artillery can be installed on Nodejs v3 using 'npm install artillery' command. - Target, phases, and priority define the APIs and structure of the test script. Target URL, phases for recurring requests, and priority of phase execution. - Common requests like GET, PUT, POST are used to test different CRUD operations and expected success response codes like 200, 201. - Variables can be defined and accessed in the artillery config or script files. Reports are generated in JSON format and can be viewed or converted to HTML. - Debugging options are available for HTTP requests, web sockets using artillery

Uploaded by

h
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Question

We can get Response Time using


Which of the following is correct about Little’s law?
Performance testing is used to determine the functions of application at a particular load.
Which of the following formula correctly defines Little’s law when Number of stable customer =N,
Average arrival rate = λ, Average time spend by user = W
Stress testing means verifying application’s stability and capabilities.

Artillery can be installed on Nodejs v3.


What is the command to verify artillery?

What command can be used to install artillery?


What does -c stand for in quick test?
What is the help command for artillery?

Target is defined in the scenarios section


arrivalCount is defined as the arrival of the virtual users for the duration of time.

Which of the following is correct? (i)target is for base URL. (ii) phase is for recurrence of the request.
(Iii) payload is for importing data. (iv) timeout is for wait time before server response. (v)
environments is for associated target
What does think argument stand for in artillery script.
If we have defined the priority of execution of three phases as 2,3,7, which of the following is
correct?
Phase of the script defines the api that we want to test.

What are the kinds of phases in artillery?


Priority of the scenarios are defined in _.

What is the success response for GET request?


Which request is similar to patch request?
Put request is used for ___.
What is the success response for creating new account?
Get request is used for ___.
Post request is used for ___.

How can we call out data path?

If path of the variable is not defined in the script, how you can run the file?
Inline variable is defined under __.
Following artillery script will error out. Which line is erroneous?
Defined variable are called inside _.

If sample_report.json is the report generated, how can the report be viewed using json file?
What does NaN (Not a Number) stand for

What does Scenarios launch stand for _.

TCS INTERNAL USE


What is the command to convert json report to html?

How to add pool count?


Which is the correct syntax for log.
How to add loop count?
In the following code snippet, how do we set the timeout?

To send message in socket io, what command should we use?


What is built-in function for generating random alpha numeric?
Where can we define our javaScript file to get the random data?
What is the engine value that we need to call in socket io?

How to debug web socket?


Command to debug http _.

Command to debug http capture .

Command to debug http response _.

How to debug socket.io?

Where can we set Header?

TCS INTERNAL USE


Correct Incorrect
All the options
Both

N=YW
0

0 1
dino artillery

npm install artillery install npm -g artillery


Count
artillery -help npm -help artillery

1,2,3,4,5
both

arrival rate, count and pause


weight

200
GET
updating
201
listing all user
Creating

config.payload.path config.target.path

artillery run sample.yml


config.varaibles
line 3 line 8
{{Variable}}

jq .aggregate
sample_report.json
not sufficient response
Virtual users generated in
defined time

TCS INTERNAL USE


artillery report
sample_report.json

config.http.pool config.pool

scenarios.count
config.http.timeout

emit
$randomString()
config processor
Socketio

ws artillery run sample


artillery run sample

capture artillery run sample

response artillery run sample

socketio artillery run sample

any HTTP requests

TCS INTERNAL USE


Incorrect

npm dino artillery

npm artillery -help

artillery run sample.yml -c


data.csv

TCS INTERNAL USE


scenarios.loop.count

TCS INTERNAL USE


Day Date File
1 5-Feb-18 No File
2 6-Feb-18 File placed with incorrect data so that program fails.
3 7-Feb-18 Correct file placed.
4 8-Feb-18 No File
5 9-Feb-18 No File

TCS INTERNAL USE


Parent Request ID AP Import Program Create Accounting Ran Create Accounting Date
9942807 Completed, Normal Yes 5-Feb-18
9942812 Failed Yes 6-Feb-18
9942961 Success Yes 7-Feb-18
9943149 Completed, Normal Yes 8-Feb-18
9943383 Completed, Normal Yes 9-Feb-18

TCS INTERNAL USE

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy