You have to create a testcase for an attended RPA process. At some point, the attended process asks the user to input a specific token for the execution to continue, as shown in the screenshot below. What testing concept (included in UiPath.Testing.Activities) can be used to isolate and replace the input part, without modifying the original workflow?
Correct Answer: C
Mock Testing is a concept that allows you to isolate and replace the input part of an attended RPA process, without modifying the original workflow. Mock Testing enables you to create a mock file of your workflow by selecting Mock workflow under test in the Create Test Case window. This creates a copy of your workflow with the name workflowName_mock and stores it in Project > Mocks. This folder mirrors the source workflow file tree structure. In the mock file, you can use the Surround with mock option to insert a mock activity that replaces the original input activity. For example, instead of asking the user to input a specific token, you can use a mock activity that assigns a predefined token value to a variable. This way, you can test the specific function of the process without having to enter the token manually every time. Mock Testing is useful for tests that have permanent effects in production or require special resources1. The other options are incorrect because: * Option A is incorrect because Application Testing is not a concept that can be used to isolate and replace the input part of an attended RPA process, without modifying the original workflow. Application Testing is a type of testing that focuses on verifying the functionality, usability, performance, and security of an application2. * Option B is incorrect because Data-Driven Testing is not a concept that can be used to isolate and replace the input part of an attended RPA process, without modifying the original workflow. Data- Driven Testing is a type of testing that uses external data sources, such as Excel files or databases, to provide input values and expected results for the test cases3. * Option D is incorrect because RPA Testing is not a concept that can be used to isolate and replace the input part of an attended RPA process, without modifying the original workflow. RPA Testing is a type of testing that involves using robots to automate the testing of other robots or applications. References: * Studio - Mock Testing - UiPath Documentation Portal * Application Testing - UiPath Documentation Portal * Data-Driven Testing - UiPath Documentation Portal * [RPA Testing - UiPath Documentation Portal]
Question 127
A developer is working on an automation using the REFramework. Each transaction item represents a piece of client information. For each customer, the automated procedure must click the "Generate Shipment Details" button. This generates a table of shipment records for each customer. What type of exception occurs when the data is not accessible, the created table displays only the header row, and processing for that client must be halted?
Correct Answer: A
When the data is not accessible, the created table displays only the header row, and processing for that client must be halted, a BusinessRuleException occurs. A BusinessRuleException is a type of exception that indicates a business logic error or a validation error that cannot be resolved by retrying the transaction. For example, if the input data is incorrect, incomplete, or outdated, a BusinessRuleException should be thrown. A BusinessRuleException can be thrown by using the Throw activity with the following expression: VB New BusinessRuleException("Message") where Message is a string that describes the error. A BusinessRuleException can be caught by using the Catch activity with the following expression: VB ex As BusinessRuleException where ex is a variable that stores the exception object. A BusinessRuleException can be handled differently from other types of exceptions, such as SystemException or ApplicationException, depending on the logic of the automation. For example, in the REFramework, a BusinessRuleException sets the status of the transaction item to Failed and does not retry the transaction, whereas a SystemException sets the status of the transaction item to Retry and retries the transaction up to a specified number of times. References: [BusinessRuleException], [Throw], [Catch], [REFramework]
Question 128
Given the following conditional breakpoint with count = 0 Conditional breakpoint settings: How many limes will UiPath be displayed in the Output panel before the process goes into a Paused state in Debug mode?
Correct Answer: C
Question 129
Which one of the following expressions Is the equivalent of the If activity from the picture?
Correct Answer: A
This expression evaluates if the number modulo 2 equals 0, which would mean it is even. If true, it assigns the string "Even number" to the variable message. If false (meaning the number is odd), it assigns "Odd number" to message
Question 130
The provided exhibit displays the representation of the " Deadline " field using the yyyy-mm-dd format. In what order should the Queue Items be processed by a single robot executing a Performer workflow?