Ads Here

Wednesday, June 29, 2022

Food Court .AD accenture answers

 User Story for a Food Ordering Application "FoodCart"

Peter is a regular customer of "FoodCart" and is using the wine food. He logs into the 

application using his Customer Id and Pi selects the location of food delivery using Maps, 

integrated with Once the correct address is detected, he proceeds to the 'Men desired food 

items. He adds multiple items to the cart andnavi verifies the added food items, their 

quantity and navigates to "E he views the following details in the Order table Item No, Item 

Net Price Below the Order table he views the Total Price, whi navigates to the Payment and 

pays using one of the payment banking, and Paytm) On successful payment, the Order

Conf displays a message The order with Id BILL9999999999_1001

1. You have already extracted the message displayed on the "Order Confirmation" window 

and stored it in a message" vartable. Now, you want towrite a custom code to fetch the bill 

id from the message in a functionsub andcall i when required. Which of the following 

options will help you write the custom code to fetch the bill id from the message in a

function/sub?

verified

Answers:- option 4

th

1. Function getBillid(ByRef message)

 getBillid = Right(Left (message,38),19)

End Function

2. Function getBillid(ByRef message)

getBillid = Left (Right

(message,38),19) 

End Function

3.Function getBillId(ByRef message)

return Left(Right (message,

38),19) End Function

4.

return Right (Left (message, 38),19)End

Function

5.Sub getBillId(ByRef message)

getBillId = Right (Left(message,38),

19) End Sub

Function getBillId(ByRef message)

2. You have customized the test script to perform parameterization and run multiple times 

for multiple login credentials. The expel file used for parameterization contains 3 columns 

and 10 rows of data (1st row containingthe column names). The test script is customized 

with a For loop to read data from an excel file and literate on all the rows of test data. On 

execution, you noticed that the test script is running more than the expected iterations. 

Whichof the following options provides the best suitable solution to fix the problem?

Answers: - 2

nd option [Verified]

1.Reduce the For-loop iterations and check if the execution happensexpectation

2. Do not make any change in the For loop iterations. Go to the Test Run Settings,

Select Run one iteration only

3. Reduce the For-loop iterations. Go to the Test Run Settings, Select Run onsiteration

only

4. Do not make any change in the for lodip iterations. Go to the Test ThunSettings,

Select Run on all data rows

5. Reduce the For loop iterations. Go to the Test Rue Settings. Select "Run on alldata rows

6. Go to the Test Run Settings, Select "Run tram data row 1 to data row 9

3. You have customized the script to fetch the Unit Price, Quantity, and Net Price for all the 

food items in the Order table. You want to validate if the Net Price is calculated property 

based on the Unit Price and Quantity. Which of thefollowing options will help you write the 

custom code best sulted to perform thedesired validation? Assume the extracted data is in 

variables (unitPrice, qty, netPrice)

Answers: - 3

rd option verified

1. expNetPrice = Cobl(unitPrice)*

'Validation Failure

Cobl(qty) If expletPrice mu =

00.1 (netPrice) Then Validation

Successful

Else

validation

Failure End If

If expNetPrice=CInt(netPrice) Then

Validation Successful

Else

End If

3.expNetPrice = unitPrice *qty

If expNetPrice=CInt(netPrice) Then

Validation Successful

Else

'Validation Failure

End If

4.ExpNetPrice =

CDpl(unitprice)*CDPL(qty) If

expNetPrice=netPrice Then

Validation Sucessful

Else

'Validation

Failure End If

4. You want to customize the test results with some additional Information regarding the 

test execution, along with porting the necessary status and message. Which of the 

following options will help you customize the test resultsrequired?

Answer: 1

st Option verified

ReportHTMLEvent

(Not the highlighted one, in picture, above that Option A)

2. expNetPrice = CInt (unitPrice) *CInt(qty)

5. One of your teammates has already created a test TC001", which contains the script for 

the customer login. He has shared the test with you. This test contains a non-reusable 

action "Customer. Login". You want to use the script inyour test, as a starting point. Which 

of the following best represents your situation to reuse the customer login script?

Answer: 4

th Option [Verified]

6. You want to customize the test script to extract the message displayed on the "Order 

Confirmation window. This message contains the order confirmationdetails with the Bill Id. 

During recording, you did not interact with the order successful element, so it is not 

captured in the OR. Which of the following options will help you write the custom code to

extract the message displayed by the order successful element?

Answer: 1

st option verified

Message = WpfWindow(“devname :=Order

Confirmation”).WpfObject(“devname:=orderSuccessful’).GetROProperty(“text”)


7. You want to parameterize the test script to run multiple times and performthe test 

automation for multiple login credentials. The input test data for Customer Id and Password 

is stored in columns Custom rid" and "Password" inan excel file with a sheet name 

"LoginData" You want to extract the data fromthe excel file columns and store them in local 

vanables Which of the following options will help you customize the scmpt to extract the 

desired data from theexcel file?

Ans: - 1

st option [verified]

8. After recording the test script, you want to perform a few customizations todesign the 

test scenarios You want to interact with the Order table and fetch the Unit Price, Quantity, 

and Net Price for all the food items. Which of the following options will help you write the

custom code?

Answer: 1

st option [verified]

9. You have decided to generate the test scripturing recording options in UFTWhich of 

the following recording styles is most appropitiae to use for generating a script based on

the gen user story?

Answer: 1st option verified

10. You want to parameterize the test script to run multiple times and perform the test 

automation for multiple login credentials. The excel file already has 3 columns (Customer 

id, Password, Status) Conformed and Password columns are used to store the input data 

for parameterization. The status column will be updated automatically after the test 

execution. You wantto update the "Status" column in the excel file with the test result 

status LoginSuccessful" or "Login Failure".

Which of the following options will help you customize the script?

Answer: 1

st Option [verified]

No comments:

Post a Comment