Version control and DevOps
Version Control is an important part of any DevOps strategy.
A Version Control System will allow team members to work freely on any file at any time, while supporting the merging of changes into a common version. Even if you are the sole member of your team, a Version Control System is still a valuable resource as it will assist you in storing and organizing project versions correctly, restoring previous versions when needed and keeping backups.
Version control in DevOps
In DevOps, a Version Control System gives better control over the version of the tests being scheduled, without needing to amend your Build File or your Continuous Integration Server setup. Test versions are mastered in the Version Control System, and upon each run the Continuous Integration Server can access the tests from that location.
If you are not using a Version Control System, you can still schedule your tests using a Continuous Integration server, but the server will access your tests from a defined location on a local machine. If this is your scenario, you can skip the rest of this page and move on to Setting up Continuous Integration.
What do I need?
To use Version Control in your test scheduling, you will need to have:
- A Version Control System set up
- A defined Version Control strategy which is being followed by your team
If you already have both of these, you can skip the next sections and move on to Version Control and Provar (see below) to learn what files need to be checked into your Version Control System.
How do I get started?
If you do not yet have a Version Control System already set up and/or a defined Version Control strategy, choose one of the following options:
- I want to set up a Version Control System
- I already have a Version Control System and want to learn how to use it with Provar:
- I am using Git
- I am using SVN, Team Foundation or HP ALM
- I use another Version Control System
I want to set up a Version Control System.
Start by choosing which Version Control System you want to use. One good option is Git. To get started, try Salesforce’s Git and Github Basics Trailhead module, which includes instructions on installing Git and creating your first Repository. Once you’ve finished this module and have Git installed, move on to the next section.
I am using Git and want to learn how to use it with Provar.
Provar has a Git plugin which gives testers the ability to perform Git activities from within Provar. Refer to Introduction to Git Integration for more information on setting up this plugin.
To make your tests run properly when scheduled, you will need to check certain Provar files into your Version Control. Refer to Version Control and Provar (see below) for more information.
I am using SVN, Team Foundation Server or HP ALM.
Provar has plugins to support the use of SVN and Team Foundation Server. These plugins can be accessed under Help > Add/Remove Features when running Provar as an administrator. Refer to Introduction to Git Integration for detailed steps on enabling a plugin.
Provar also supports integration with HP ALM. Refer to the HP ALM help page for more information.
To make your tests run properly when scheduled, you will need to check certain Provar files into your Version Control. Refer to Version Control and Provar (see below) for more information.
I use another Version Control System not mentioned above.
If Provar does not yet have an integration with your Version Control System of choice, you can still use these systems with Provar by manually checking in your Project and Test Case files from your local directory.
To make your tests run properly when scheduled, you will need to check certain Provar files into your Version Control. Refer to Version Control and Provar (see below) for more information.
Version Control and Provar
Provar is a file-based system. The files it creates are XML, Text or Java, as shown in the table below:
To make your tests run properly when scheduled, make sure that the following files are not checked into your Version Control System:
In addition, if you are using Git, the default .gitignore file should be replaced with this file. Make sure that the file has the extension .gitignore after you have saved it.
Once you are finished, you can move on to the final section, Setting up Continuous Integration.
- General information
- Licensing Provar
- Provar trial guide and extensions
- Using Provar
- API testing
- Behavior-driven development
- Creating and importing projects
- Creating test cases
- Custom table mapping
- Functions
- Debugging tests
- Defining a namespace prefix on a connection
- Defining proxy settings
- Environment management
- Exporting test cases into a PDF
- Exporting test projects
- Override auto-retry for Test Step
- Managing test steps
- Namespace org testing
- Provar desktop
- Provar Test Builder
- Refresh and Recompile
- Reload Org Cache
- Reporting
- Running tests
- Searching Provar with find usages
- Secrets management and encryption
- Setup and teardown test cases
- Tags and Service Level Agreements (SLAs)
- Test cycles
- Test plans
- Testing browser options
- Tooltip testing
- Using the Test Palette
- Using custom APIs
- Callable tests
- Data-driven testing
- Page objects
- Block locator strategies
- Introduction to XPaths
- Creating an XPath
- JavaScript locator support
- Label locator strategies
- Maintaining page objects
- Mapping non-Salesforce fields
- Page object operations
- ProvarX™
- Refresh and reselect field locators in Test Builder
- Using Java method annotations for custom objects
- Applications testing
- DevOps
- Introduction to test scheduling
- Apache Ant
- Configuration for Sending Emails via the Provar Command Line Interface
- Continuous integration
- AutoRABIT Salesforce DevOps in Provar Test
- Azure DevOps
- Running a Provar CI Task in Azure DevOps Pipelines
- Configuring the Provar secrets password in Microsoft Azure Pipelines
- Parallel Execution in Microsoft Azure Pipelines Using Multiple build.xml Files
- Parallel Execution in Microsoft Azure Pipelines using Targets
- Parallel execution in Microsoft Azure Pipelines using Test Plans
- Bitbucket Pipelines
- CircleCI
- Copado
- Docker
- Flosum
- Gearset DevOps CI/CD
- GitHub Actions
- Integrating GitHub Actions CI to Run Provar CI Task
- Remote Trigger in GitHub Actions
- Parameterization using Environment Variables in GitHub Actions
- Parallel Execution in GitHub Actions using Multiple build.xml Files
- Parallel Execution in GitHub Actions using Targets
- Parallel Execution in GitHub Actions using Test Plan
- Parallel Execution in GitHub Actions using Job Matrix
- GitLab Continuous Integration
- Travis CI
- Jenkins
- Execution Environment Security Configuration
- Provar Jenkins Plugin
- Parallel Execution
- Running Provar on Linux
- Reporting
- Salesforce DX
- Git
- Team foundation server
- Version control
- Salesforce testing
- Adding a Salesforce connection
- Assert Page Error Messages on Add/Edit Product
- Dynamic Forms
- Internationalization support
- List and table testing
- Salesforce Release Updates
- Salesforce Lightning Testing
- Salesforce Lightning Web Component (LWC) locator support
- Salesforce console testing
- Visualforce Testing
- Performance Best Practices
- Testing best practices
- Troubleshooting
- Browsers
- Configurations and permissions
- Connections
- DevOps
- Error messages
- Administrator has blocked access to client
- JavascriptException: Javascript error
- macOS Big Sur Upgrade
- Resolving failed to create ChromeDriver error
- Resolving Jenkins license missing error
- Resolving metadata timeout errors
- Test execution fails – Firefox not installed
- Update to Opportunity field validation behaviour
- Licensing, installation and firewalls
- Memory
- Test Builder and test cases
- Release notes