Profiling

Modified on Mon, 25 Mar 2024 at 05:18 PM

TABLE OF CONTENTS


Profiling is creating an offline model of an application under test (AUT), which involves mimicking a UI model of an AUT using nodes, features and UI elements

Creating an offline model

  1. Login to algoshack.net > algoQA > Profiler.
  2. In the Create project window, enter the appropriate name and select appropriate Automation type from the Automation drop-down list.
  3. Click Create to view the main canvas screen.
  4. In the left pane, select More Menu on the appropriate Node configuration folder  and select Upload to upload the downloaded .csv file.
  5. Click Submit.
  6. On the Main canvas, drag and drop the node.
  7. Select each node to view the Palette pop-up window in the right pane. In the Node Name text box, enter the same name as the page name. Similarly, add the appropriate node names for the remaining nodes and use the connectors to connect the nodes.
  8. Upon successful node configuration, you can see all the UI elements within the feature. By default, one feature will be configured.
  9. In the required feature, update the five attributes of UI element, such as control name, control value, navigation, business rules, test data or control value and locator. Similarly, repeat the step to update the attributes for all other UI elements.

  10. On the Main canvas, click Save.


Tip: Alternatively, you can upload the CSV file and automatically you can see the respective node placement in the Main Canvas.


Adding Parameters for API Steps in the Control List Panel Window

In the Control List Panel window, follow these steps only if you wish to add API steps:


  1. Click the "Add Control" button to add a new UI element.
  2. Provide a name for the new UI element.
  3. Select the "TextBox" action for the UI element.
  4. Add the required parameter, such as 'set_api_endpoint', to the UI element.
  5. Click on the "More Menu" and select "Set the API URL" as the default action.

These steps will help you add a new UI element for managing API steps in your application. You can select the default action while recording a scenario using the Follow Me feature.


Recording the scenarios using FollowMe feature

Follow Me feature is used to record and save the workflow or scenario or use case. Scenario will be saved in the same sequence it has been recorded. 


Note: Recording for the FollowMe feature is done in offline model. It doesn’t interact with the live application.


User actions 

  1. Open Amazon.in website
  2. Search for a particular laptop. 
  3. In the Product Listing page, you can refine your search results by selecting the appropriate laptop by using sorting and filtering options.
  4. In the product details page, verify the laptop details with technical specifications and add to cart
  5. Verify the details in the shopping cart and proceed to check out.

    To record a scenario, follow the steps:
    1. On the Main Canvas, click Follow Me feature to view Record Scenarios pop-up window.
    2. Enter the scenario name, outline the steps briefly, and click Create to create a sequence. Create Profile Sequences pop-up window appears. All the available nodes are listed in the window.
    3. Select the required feature (Amazon Sign In) under the Node (Sign In) to view all the added UI element details as shown and then arrange all the UI elements in a sequence. For example, if you were performing a Login process, you will select the all the UI elements related to this process in a sequence, such as username, password and Sign in button.
    4. Similarly, select all the required features and the associated UI elements to create a sequence. Click Ok. Scenario flow has been recorded. Click Submit.

      In the Recorded Scenarios window, click Analyze to save the recorded scenario. Once the scenario is successfully saved, you will see a 'Scenario created successfully' message.

Tip:  You can select multiple UI elements repeatedly in a single workflow.


Generating Test Cases


To generate a test case, perform the following: 

  1. On the Main canvas, click Generate Test case.
  2. The generated test cases are stored in the generated test case folder. The test case folder includes updated XLS and Feature Files.
  3. If you wish to proceed with script generation, then click the link Go for script generation.





Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article