TESTING WITH DIFFERENT PROFILES

Similar documents
PROVAR QUICKSTART GUIDE

Account Plan Pro Set Up Guide

Introduction & Navigation

Adobe Document Cloud esign Services. for Salesforce Version 17 Installation and Customization Guide

Getting Started with Outlook Web App (OWA)

Admin Guide Hosted Applications

Two factor authentication for Microsoft Remote Desktop Web Access

1/26/2017 Autochartist - MetaTrader Plugin. MetaTrader Plugin.

MeetingSquared Pro Administration User Guide

Clinical Looking Glass Introductory Session In-Class Exercise Two: Congestive Heart Failure

Install Guide WINTER '15 REVISION C. C o p y r i g h t C l o u d A p p s L t d

Xton Access Manager GETTING STARTED GUIDE

Administration Essentials for New Admins (Managing Data) Exercise Guide

[ Getting Started with Analyzer, Interactive Reports, and Dashboards ] ]

Appserv Internal Desktop Access Mac OS Device with Safari Browser. Enter your Appserv username and password to sign in to the Website

Internet Key Administration

Polytechnic e-learning: LMS Manual - LECTURER

LinkedIn Sales Navigator for Salesforce Installation Guide: Lightning View

Interlink Express Desktop Printing Service Installation Guide

Spatial Data Standards for Facilities, Infrastructure, and Environment (SDSFIE)

We start by providing you with an overview of the key feature of the IBM BPM Process Portal.

Joomla Installer User Guide. Version 1.0

Refreshing the Dashboard allows you to make sure you are seeing the most recent data in your visualizations.

Lab 4: Pass the Data Streams to a Match Processor and Define a Match Rule

Welcome to InSite: A GUIDE TO PROOFING ONLINE. Getting Started Viewing Job Information Uploading Files Viewing Pages Requesting Corrections

MY MEDIASITE.

SharePoint General Instructions

Integrate Salesforce. EventTracker v8.x and above

1. Open any browser (e.g. Internet Explorer, Firefox, Chrome or Safari) and go to

JOB AID: Contractor: Timecard and Expense Entry in the New UI

Lab - Remote Desktop in Windows 8

Instructor User Guide for EconPortal Macroeconomics, Third Edition

Security Management System Camera Configuration Axis IP Device (Stream Profile Support)

Document revision 1.0

IBM Smart Cloud Entry Hosted Trial Guide 3.2

Forms Printer User Guide

Software Release Communication 02/07/2014. Topics covered. Solutions You Can Count On

WEB CREATOR FILE MANAGER

UNITY CRM INTEGRATION USER GUIDE

PACS ADMIN. Quick Reference Guide

EntraPass (W10) Installation Guide Kantech-OnBoard systems

ALES Wordpress Editor documentation ALES Research websites

Maintain an ILE RPG application using Remote System Explorer

Importing Merit Calendar to Outlook 2010

How to Login, Logout and Manage Password (QRG)

Roadmap to UPK 3.1 Session #1 UPK 3.1 Practice Exercises. A Solbourne White Paper April 2008

2012 Learning Guide Employee. StaffReady.

How to Export a Report in Cognos Analytics

Enter your Appserv username and password to sign in to the Website

IM L07 Configuring Enterprise Vault Data Classification Services

AgentWorks Administrator/Manager Functions Guide R10

This Quick Start describes how to use Bocconi Cloud Service, called Filr in the rest of the document, from your Windows desktop.

QUICK START GUIDE. Quick Start Guide. This will assist you to setup and distribute content to a StratosMedia Player device in 4 easy steps.

USER MANUAL. SalesPort Salesforce Customer Portal for WordPress (Lightning Mode) TABLE OF CONTENTS. Version: 3.1.0

Registering at the PNC Developer Portal

e-snaps Online Training Navigation Tutorial

User Guide. Avery Dennison Web Ordering Solution for Steinmart

PEOPLEADMIN USER S GUIDE. Sam Houston State University

OIG 11G R2 Field Enablement Training

Organizing Your Network with Netvibes 2009

Table of Contents. I. How do I register for a new account? II. How do I log in? (I already have a MyJohnDeere.com account.)

Unit 4 Agresso. Introduction to Desktop

UTAS CMS. Easy Edit Suite Workshop V3 UNIVERSITY OF TASMANIA. Web Services Service Delivery & Support

ADMINISTRATION ESSENTIALS FOR EXPERIENCED ADMINS (AUTOMATION) Exercise Guide

New Dropbox Users (don t have a Dropbox account set up with your Exeter account)

RingCentral for Salesforce Classic. UK Administrator Guide

Getting Started with IBM Cognos 10 Reports

CompClass Solo User Guide for Instructors

Laredo v8.0 Release Notes

<Partner Name> RSA ARCHER GRC Platform Implementation Guide. Gurucul Risk Analytics. <Partner Product>

Integration Note for. OmniStream. Atlona Integration Note

Fairfield University Using Xythos for File Storage

Obtaining and Using the Camtasia Relay Software at Simpson College. Download Camtasia Relay to your computer for use.

Citrix Working Remotely Reference Guide

Educator Portal: Creating a Practice Formative Test Session

Oracle Enterprise Manager Oracle Database and Application Testing. Application Testing Suite Lab. Session S318966

CRM Integration. SalesForce 06/01/2016

Managing GSS Devices from the GUI

COLLEGE OF WILLIAM AND MARY

BLUEPRINT TEAM REPOSITORY. For Requirements Center & Requirements Center Test Definition

Amazon AppStream 2.0: SOLIDWORKS Deployment Guide

Protect Your Investment In Asure ID. Thank You For Purchasing Asure ID Let s Get Started! Section 1 Installing Asure ID

Importing source database objects from a database

Computer Basics. Logging onto Windows

Web-based Configuration. First, setup motion detection windows in the web-based configuration of the camera.

IBM Atlas Policy Distribution Administrators Guide: IER Connector. for IBM Atlas Suite v6

Moodle The Basics of Editing a Content Management Course

Legal Library. In this guide we will review how to download and use our Legal Library tool. Commercial Brokers Association May 2018

PO Processor Installation and Configuration Guide

R9.7 erwin License Server:

Tutorial 1: Simple Parameterized Mapping

Guided Exercise 1.1: Setting up the sample OpenEdge Data Object Services

WCM 6.0 Pro MS/SP Software Recovery Installation Guide

Updating Firmware on the Trimble R2

Migration Instructions for All Users

Posting Photos of CORE trips on the CORE Website 10 Aug 2017

IBM / ST SensorTile Watson IoT Workshop

HP ALM Overview. Exercise Outline. Administration and Customization Lab Guide

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited SHAREPOINT 2016 POWER USER

RingCentral for Salesforce. Administrator Guide

Transcription:

TESTING WITH DIFFERENT PROFILES Another simple, practical guide for getting started with Provar www.provartesting.com info@provartesting.com

Introduction 3 Testing with Different Profiles 3 Introduction 3 Creating the Callable Test Case 3 Creating the Calling Test Case 13 Exercise: Testing with Different Profiles 19 Appendix: Adding a Secondary (Non-Admin) Connection 21 Obtaining User Details 21 Creating a Login-As Connection 23

Introduction Welcome to the Testing with Different Profiles module of the Provar Quickstart Extension. This guide is intended to increase your knowledge of Provar through topics not covered in the original Quickstart Guide. This guide is currently in BETA. If you want to know about features not covered in this guide, or if you have any questions about the topics covered here, please contact us at info@provartesting.com. Testing with Different Profiles Introduction In this lesson you ll be creating a Test Case and learning how to execute it from the perspective of a different user. This is a useful facility of Provar but setting it up the first time can seem complex. We will run through the process step by step. Creating the Callable Test Case Start by opening Provar Desktop and creating a new Test Case titled CallableAccount : 3

Leave Launch Test Builder Session ticked, and press the Finish button. Once Test Builder has launched, map the steps to create a new Account record, where the Name of the Account is Test Account. Follow the steps below to complete this. Start by clicking on the Account tab. Once you are on the tab, right-click on the New button and select Add to Test Case : Once the draft Test Step appears, click the Add & Do button: 4

On the new Account screen, right-click on the Account Name screen and select Add to Test Case : 5

Once the draft Test Step appears, enter Test Account in the Value field and then click the Add & Do button: Finally, map a click of the Save button so that the new Account record is created. Now you will delete the new Account record and handle the confirmation alert. On the newly created Account, right-click on the Delete button and select Add to Test Case : 6

Then click Add & Do in the draft Test Step: 7

The following alert will appear in the browser: At this point leave the Test Builder session running but navigate back into Provar Desktop. Go to the Test APIs Palette and locate the UI Handle Alert, then click and drag it into the Test Case: 8

If the new Test Step is not indented to the same level as Click the Delete button, click and drag the Test Step up so that it is indented as follows: In the Expected Message parameter of the Test Step, type out the message body of the alert: 9

Check that the Response is set to OK, not Cancel, to indicate that the OK button should be clicked on the alert. Then save the Test Case and navigate back to Test Builder. Click Step Forwards ( Builder to execute the new step. ) on the Test Once the step has been executed, the Account will be deleted and you will be navigated back to the Account home screen: This completes the steps needed for this Test Case. Click Stop ( ) to close this Test Builder session and navigate back to Provar Desktop. Make the Test Case callable by setting the Callable parameter on the topmost Test Step: 10

Finally, set the Test Case so that it can receive different Connection details when it is called. To do this, click the Add Parameter ( ) icon on Test Case Parameters: 11

In the dialog box that opens, click the Expand icon ( ) against the Salesforce Connect Test Step. Locate the Override Connection parameter and click on it: This will automatically populate Name, Title, Summary and Default Value. 12

Then click OK. On the Salesforce Connect Test Step, check that the variable {ReuseConnectionName} has been created in the Override Connection parameter. In the same section, set the If already open parameter to Re-use the Connection : This means that, if the Test Case is run independently, it will use its default Admin Connection (as defined above, in the Connection parameter of the Salesforce Connect Test Step). However, if it is called by another Test Case which passes an Override Connection value to it, it will accept and re-use the Connection that is passed. Finally, save the Test Case. Creating the Calling Test Case Finally, you will create a new Test Case using a different Connection that represents a different (nonadmin) user group, e.g. a Sales user. If you were provided with a Provar test project file to use alongside this document, a non-admin Connection, SalesUser, has probably already been set up for you. You can check whether this exists by referring to the Connections tab in the Test Settings view. 13

If you do not have a non-admin Connection already set up, you should create one before proceeding. Refer to the Appendix for more information on setting up a non-admin Connection. Once you have a non-admin Connection set up, you can return to this point and continue creating the new Test Case. In this new Test Case, we will connect to Salesforce as SalesUser, call the CallableAccount Test Case you built earlier, and execute it from the perspective of the SalesUser. Start by creating a new Test Case called CallAccount (Sales). This time, set Connection Name to your new non-admin Connection (e.g. SalesUser ), and untick Launch Test Builder Session : 14

Then click the Finish button. Once the Test Case is created, find the CallableAccount Test Case in the Navigator and drag it into the new Test Case to create a new Test Step: 15

Then in the Override Connection parameter of the Call Test Step, select the non-admin Connection (e.g. SalesUser ): If you do not get this option in a picklist, make sure the Editor is set to Connection Editor and then try again: 16

Once SalesUser is selected, save the new Test Case and run it in Debug mode. To check that the callable Test Case is being executed as Sales User, click on the Salesforce Connect Test Step of the callable Test Case and check the Encoding Username : Alternatively, go to the Variables view for the same Test Step and check Variables (after) > Admin: Another option is to check the browser as the Test Case is executing and look for the Logged in as banner in the top-right corner: 17

Congratulations! You have completed Testing with Different Profiles. 18

Exercise: Testing with Different Profiles Now that you have completed this lesson, practice your skills with the following exercise. In this exercise you will create a Test Case which connects to Salesforce using a non-admin Connection (e.g. SalesUser ). This Test Case will call two other Test Cases which create an Account and a related Contact record respectively. After the Account is created, the Account Owner hyperlink will be clicked and a printscreen taken of the Account Owner s Chatter profile: Please ensure the following: The CreateAccount and CreateContact Test Cases can re-use any Connection which is passed to them when called. The CreateContact Test Case creates the Contact via the related list on the Account record: All three Test Cases are stored in a new folder within /tests called ProfileExercise. Here are some hints to help you complete this exercise: Create your CreateAccount Test Case by copying the ManageAccount Test Case and modifying its steps. Use the Click Interaction to click the Account Owner hyperlink and take a printscreen of the Account Owner s Chatter profile. After creating the Account, make sure you add add an Output Parameter to capture the Account ID, and consider the scope required for the parameter (defaults to Test Case ): To make sure the Contact is linked to the correct Account, you will need to parameterize the field which defines the Account ID, so that this value can be passed from the calling Test Case. 19

If you are not sure how to get started, use the screenshot below to get an idea of how this Test Case could be structured: These tasks are covered in depth in the Data Driven Testing lesson, so refer back to this lesson if you are unsure of what steps to take. After you have completed the Test Case, watch the exercise solution video to check your work: vimeo.com/235030776 20

Appendix: Adding a Secondary (Non-Admin) Connection This appendix describes how to set up a secondary (non-admin) Connection in Provar. You will need to do this to complete the Testing with Different Profiles lesson of this guide. Obtaining User Details To set up a non-admin Connection from scratch, you will first need to obtain some user details. You will need one of the following combinations: Username + confirmation that the user has granted Account Login Access to their company s administrator. Username + password + Security Token Note that the first option is preferred, as there will be no requirement to maintain the Connection. If you choose the second option, you will need to keep the password and Security Token updated. If you have a non-admin test user already set up that you can use, go ahead and retrieve the above user details, then move on to the section below, Creating a Login-As Connection. If you do not have a non-admin test user already set up, follow the steps below to create one. First log into your test environment using your admin Connection details. A fast way to do this from Provar is to open the Org Browser, click on any Object, then when the records load, click on a hyperlinked record ID): 21

Once you are logged into Salesforce, go into Setup > Users > Manage Users, and click the New button to create a test user. For example: Once your test user is set up, you will need to check that your test user has granted Account Login Access (if you are using this option). To check this, go to the Manage Users page in Setup. If the user has provided Account Login Access, there will be a Login hyperlink next to their name: If this is not present, you should to log in as your secondary user to grant this access their settings. To grant Account Login Access, log in as the secondary user, go to My Settings > Personal > Grant Account Login Access, then apply an Access Duration for Your Company s Administrator, e.g. 1 Year : 22

Then click Save. If you choose not to grant Account Login Access, make sure that you have the user s password and Security Token before proceeding to create the Connection. Creating a Login-As Connection Now that you have your Secondary user details, you can a new Connection for this user. Navigate back to Provar Desktop and into the Test Settings view, making sure it is open to the Connections tab: Then click New ( ): Provide a relevant name for the Connection, e.g. SalesUser, set the Connection Type to Salesforce and the secondary dropdown to Normal Salesforce Connection : 23

If your secondary user has granted Account Login Access, select the radio button Use Log-on As via an Admin Connection. This option will not require you to set a password and Security token. In Log-on As Connection, select your Admin connection, then enter the Username: If your secondary user has not granted Account Login Access, leave selected the radio button Normal Log-in, and provide Username, Password, Security Token and Environment in the relevant fields: Note that you will need to update the Connection each time the user s password or Security Token changes. Click the Test Connection button to check the details entered are correct: 24

Once you have this confirmation, click OK on the Test Connection dialog, then OK again to create the new Connection. Once this Connection has been created, it will appear under Connections in Test Settings, and the Org Browser will open to the new Connection: With this Connection created, you can now return to complete the Testing with Different Profiles lesson. 25