[go: up one dir, main page]

0% found this document useful (0 votes)
992 views6 pages

Artillery - API Freighting

The document contains questions and answers related to performance testing using Artillery. Some key points: - Artillery is a performance testing tool that can be installed via NPM. - Little's Law defines the relationship between arrival rate, waiting time, and number of users in a queueing system. - Artillery scripts define scenarios, phases, and requests to test an application at different loads and priorities. - Reports are generated in JSON format and can be viewed or converted to HTML.

Uploaded by

kashyap
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)
992 views6 pages

Artillery - API Freighting

The document contains questions and answers related to performance testing using Artillery. Some key points: - Artillery is a performance testing tool that can be installed via NPM. - Little's Law defines the relationship between arrival rate, waiting time, and number of users in a queueing system. - Artillery scripts define scenarios, phases, and requests to test an application at different loads and priorities. - Reports are generated in JSON format and can be viewed or converted to HTML.

Uploaded by

kashyap
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/ 6

S.

No Question
1 We can get Response Time using
2 Which of the following is correct about Little’s law?
Performance testing is used to determine the functions of application at a particular
3 load.
Which of the following formula correctly defines Little’s law when Number of stable
4 customer =N, Average arrival rate = λ, Average time spend by user = W
5 Stress testing means verifying application’s stability and capabilities.
6 Artillery can be installed on Nodejs v3.
7 What is the command to verify artillery?
8 What command can be used to install artillery?
9 What does -c stand for in quick test?
10 What is the help command for artillery?
11 Target is defined in the scenarios section

12 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
13 server response. (v) environments is for associated target
14 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
15 following is correct?
16 Phase of the script defines the api that we want to test.
17 What are the kinds of phases in artillery?
18 Priority of the scenarios are defined in _.
19 What is the success response for GET request?
20 Which request is similar to patch request?
21 Put request is used for ___.

22 What is the success response for creating new account?


23 Get request is used for ___.
24 Post request is used for ___.
25 How can we call out data path?
26 If path of the variable is not defined in the script, how you can run the file?
27 Inline variable is defined under __.
28 Following artillery script will error out. Which line is erroneous?
29 Defined variable are called inside _.
If sample_report.json is the report generated, how can the report be viewed using json
30 file?

31 What does NaN (Not a Number) stand for

32 What does Scenarios launch stand for _.


33 What is the command to convert json report to html?
34 How to add pool count?

TCS INTERNAL USE


35 Which is the correct syntax for log.
36 How to add loop count?
37 In the following code snippet, how do we set the timeout?
38 To send message in socket io, what command should we use?
39 What is built-in function for generating random alpha numeric?
40 Where can we define our javaScript file to get the random data?
41 What is the engine value that we need to call in socket io?
42 How to debug web socket?

43 Command to debug http _.

44 Command to debug http capture .

45 Command to debug http response _.

46 How to debug socket.io?

47 Where can we set Header?


48 What argument is used for environment associated target?

49 I want to create an account. Which of the following is correct for scenarios script?

TCS INTERNAL USE


Correct
All the options are correct
Both the option is correct.

N = λ*W
0
0
artillery dino
npm install artillery
arrivalRate
artillery -help
0

i, ii, iii, iv, v


Both options are correct

priority for 7 will be 27.27 %


0
arrivalRate, arrivalCount and pause
weight
200
PUT request
Updating data
1. 201
2. 405
Listing all the user.
Creating data
config.payload.path
artillery run sample.yml -p data.csv
config.variables
line 3
{{ variable }}

jq .aggregate sample_report.json
There was not sufficient response for this
action.
Number of virtual user generated in the
defined time.
artillery report sample_report.json
config.http.pool

TCS INTERNAL USE


scenarios:
- flow:
- post:
url: "/api/users"
json:
name: "ranjan"
job: "programmer"
capture:
json: "$.id"
as: "id"
- log: "Id value: {{ id }}"
scenarios.flow.count
config.http.timeout
emit
$randomString()
config.processor
Socketio
DEBUG:ws artillery run sample.yml

DEBUG:http artillery run sample.yml


DEBUG:http:capture artillery run
sample.yml

1. DEBUG:http:capture,http:response
artillery run sample.yml
2. DEBUG:http:capture artillery run
sample.yml

DEBUG:socketio artillery run sample.yml

We can set header for any HTTP requests.


-e argument

scenarios:
- flow:
- post:
url: "/api/users"
json:
name: "Ranjan"
email: “ranjan@play.me”

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