Project Variables in Architect

These variables are accessible throughout an entire project, are global variables within a runtime within a project,  and can be shared between all test cases within that same project, making them different from test variables.  Using project variables can be very powerful if doing 2-factor authentication and adding substring(s). NOTE: Project variables can be edited on the front end as well for the purposes of saving and deleting them.  

In Architect, the user can Save and Load project variables.

Save Project Variable:

  1. Turn the ADV (advanced) toggle to On in Architect.

  2. Click the Verify Element flag icon. 

  3. Verify the element to be stored (for example, the text in a field or on the screen) by clicking the element in the application under test.

  4. Click the radio button next to verify step to open the Variables tab.

  5. Scroll to select the variable attribute to store/save. In the example below, the user is selecting the text attribute, "Bladen Chair Ottoman".

    mceclip0.png
  6. Click Save Variable button.

  7. Enter the Variable Name. (Limit 40 characters)

  8. Select the Attribute. In the above example, the user has selected the text attribute.

  9. The Attribute Value has been auto completed based on previous selection.how to load an extension in chrome

  10. Then click Save and the project variable will be stored.

    mceclip1.png

 

 Load Project Variable:

  1. Turn the ADV (advanced) toggle to On in Architect.

  2. Click the mceclip2.png icon for Type Instructions to open the Action tab.

  3. Click on Project Variables button.

  4. Under Load Variable, search for the Variable Name. In this example, the user selected the SearchChair variable. 

    mceclip3.png
  5. Then click Set Target button.

  6. Click where the variable should be placed in the application being tested.  

  7. Click Save in Architect.  This will prompt the user to name the test. 

  8. Enter a name for the test, then click Continue.

  9. Verify your Project Details.

  10. Then click Submit.

 

On the Front End, the user can then verify the test case and confirm it is repeatable, as well as use the Store and Load Project Variable features for that test case. The user can also add, edit and delete project variables.

 To Confirm Repeatability and/or Store and Load Project Variables on the Front End

  1. Choose a browser to make the initial test run.

  2. Click Continue (or Run in the Background, if desired).

  3. Select desired test and click Actions button>>Details.

  4. Go to Action Log tab.

  5. See Store Project Variable to save the variable and Load Project Variable load.

 To Add, Edit and/or Delete Project Variables on the Front End

  1. Go to the Project Settings icon and select Project Variables from the drop down menu.mceclip0.png
  2. The Project Variables page will pop up allowing the user to add, edit and/or delete project variables mceclip1.png
  3. To Add a Project Variable, click the mceclip2.png and add the Variable Name and associated Value, then click Save. *Please note variables will only work for text and value attributes at this time. Project Variable Name must also be unique.  If a duplicate name is entered, Functionize will identify the duplicate and offer an error message asking the user to create a unique project variable name. Further, a project variable name has a length limit of 100 characters
  4. To Edit a Project Variable, simply edit the fields for Variable Name and/or Value directly on this screen, then click Save.
  5. To Delete a Project Variable, click the mceclip3.png on the variable to delete, then click Save.

It is important to note that project variables available within the project, and by environment. Variables cannot be shared across environments. See also orchestrations.