Momentum Suite Extension Usage

Download Momentum Suite Visual Studio extension from visualstudio marketplace.

VS Code Extension allows you to develop automation code faster. It is fully integrated with the interface. There is a two-way, git-based code development system.

The following images show how a structure shown on the website is displayed in Visual Studio Code.

A simple project on MomentumSuite.com (1 Section, 1 Case, 3 Steps)

A view from Visual Studio Code project. In this image, you see how things work in the code section

 

How to add a new Step?

  • Type in the code window “!mstep“ and press ENTER on VS Code.

  • Modify Step title “My Step Title in Freetext“

  • Modify function name Step_ with “Step_my_step_title“

  • Write your code for this step.

  • Save, commit and push your code to Git.

Please do not modify Id = 0 .. ID value will be populated automatically when you push your code to git repository. After that, You could get/pull the latest code from git to get the generated ID.

How to create a new Case on an existing Section?

  • Press “Command + Shift + P” on VS Code

  • Select “Momentum:Create Case

  • Select from existing sections that already defined before. “Login TestCases“

  • Type your Case name. “Successfully Login case“

  • A new file will be generated on your VS Code project. “Id=0” means that case is new and not pushed yet to your repository.

  • If you want to add a new step type “!mstep“ and write your code.

  • Do not forget to push your code changes to Git repository.

 

How to create a new Case on a new Section?

  • Press “Command + Shift + P” on VS Code

  • Select “Momentum:Create Case

 

  • Select “Create new Section“ to create a new section

  • Type your new Section name and Press ENTER.

  • Type your new Section description and Press ENTER.

  • Type your Case name. “Signup with new email address“

  • A new file will be generated on your VS Code project. “Id=0” means that case is new and not pushed yet to your repository.

  • If you want to add a new step type “!mstep“ and write your code.

  • Do not forget to push your code changes to Git repository.

 


The following image shows Git integration changes

 

The following image shows momentumsuite.com WebUI integration with GitHub changes.