Using Git Commands
SimplifyQA Code Editor provides built-in scripts to help you compile your custom code and push it to your Git repository for use in test automation.
Publishing Custom Jar to Git/BitBucket
After writing and building your custom method, you can publish it directly to your Git repository by using the publish.bat command.
Example: Publishing the code to GitLab
Open the terminal in your Code Editor project directory
One-Time Setup-
Once the custom methods are written and are error free, run the command:
publish.batA one-time pop-up will appear prompting you to log in:
Git URL: Your GitLab repository URL will bce auto-populated
Username: Your GitLab username
Token: Your GitLab Personal Access Token
After successful authentication, run the command again:
publish.batThis will publish the custom jar to your GitLab repository and automatically generate a new tag. You can verify it by visiting your GitLab project and navigating to:
Repository → TagsThis tag contains your updated[Project_Name].jarwith the custom method, allowing version tracking and easy reuse.
Other Commands (Windows)
build.bat: Use this command before publishing to compile your code and generate the JAR file containing the new custom methods.push.bat(optional): If you want to only push your code (without publishing), use this command after building.sync.bat: Use this command after building the jar to sync the actions directly into the tool.
Mac Equivalent Commands
./macBuild.sh– for compiling the code (likebuild.bat)./macPublish.sh– for publishing the compiled code to Git (likepublish.bat)./macSync.sh: for syncing the actions directly into the tool (likesync.bat)
Last updated
