Newer Version Available
Test Harness Home Tab
The Home tab is organized as a series of cards. Scroll to the card with the feature or tool you want to use. Some cards offer controls right on the card itself, while others lead you to secondary screens when you tap on them.
Test Harness comes with a predefined set of cards on the Home tab. Some cards, such as Draft Control and My Offline Records, have a static user interface. Others, such as Global Actions, are controlled by metadata, and can be configured in Setup in your org.
Draft Control
Draft Control allows you to start and stop the Offline Queue. This allows you to perform actions while online, such as creating or editing a record, while giving you a chance to inspect the results before they’re uploaded to the Salesforce service. The Draft Control card only allows you to start and stop the queue, and see how many drafts are currently waiting in the queue. For more insight into the contents of the Offline Queue, see the Drafts tab.
The Test Harness app starts with the Offline Queue in a paused state. Drafts you create while the queue is paused wait in the Offline Queue until you tap Start Queue. When the queue is running, the button label changes to Stop Queue. If an error occurs while uploading a draft, the queue is paused automatically.
My Offline Records
The record view available in My Offline Records matches what your users see when using the Salesforce Mobile app in offline mode. That is, the view is driven by your org’s metadata for page layouts, the way non-developers see them. For example, you see only the record-specific quick actions that are added to the page layout for the object, and each quick action has the icon you’ve defined for it. In contrast, when you view records in the developer-centric SObjects tab, all LWC-based quick actions defined for the object are displayed in a list, without icons.
Page Refs
This is an advanced feature. It allows you to provide a list of resources to be primed by the LWC Offline engine. Each resource is specified as a PageReference using JSON.
Network Logs
This card allows you to capture and inspect details regarding the network requests made by your Lightning web components. The tool captures requests after you tap Start, and stops capturing them when you tap Stop. To see a list of captured requests, tap Show. The list shows the type and URL of the request, and the response code and duration. Tap a specific request to see further details, such as the headers and body of the request and response.
LightningSDK Control
This card provides controls for affecting the LWC Offline engine. Currently, the only option is Rebootstrap. Use Rebootstrap to reload a component under development when you’ve made changes to the component’s code. This allows you to quickly reload a custom component, without quitting and restarting the Test Harness app.
Global Actions
This card displays quick actions that you’ve added to a global publisher layout in your org. This makes it quick and easy to test global actions you’re working on. See Add Actions to Global Publisher Layouts in the Salesforce Help for details of how to add your global actions to a publisher layout.
Recently Viewed Records
The Home tab displays the most recently accessed Account records in this card. The list is driven by activity, real record views in Salesforce—not viewing them in Test Harness. If you don’t see the records you expect to see, view Salesforce in your desktop browser, and visit records of the appropriate type there. Then return to the Test Harness app, where you can pull-to-refresh to see an updated list of recently viewed records.