Chrome Extension For Tosca

We’re thrilled to announce the release of our new Chrome Extension for Tosca, which will help you make your blog even better!

Our extension makes it easy to add videos and images to your posts. It scans your text for relevant keywords so that you can find support for what you’re saying with video and image suggestions.

You can also use the extension to see how many people have viewed or commented on your post, so that you can get a feel for how well it’s resonating with your audience. You can even track how many people click on links in your posts, so that you can see if certain resources are more popular than others.

We know that writing is hard work, but we also believe that amazing ideas deserve great exposure. Our extension helps you share those ideas with the world in a way that’s authentic and engaging by supporting you as an individual writer.

Chrome Extension For Tosca

LambdaTest provides support with Selenium WebDriver for pacing the execution of your automation test scripts. LambdaTest is a cloud-based, cross browser testing tool, providing a Selenium Grid of 3000+ browsers and browser versions running through real operating systems to speed up automation testing of your web-app or website. This topic will help you to automate your website testing using Tricentis Tosca on LambdaTest.

This topic will be focusing on:

  • Running a sample Tricentis Tosca testcases on LambdaTest Automation.

Prerequisites For Running Tricentis Tosca Test Cases On Selenium Grid

  1. Log in to LambdaTest. If you haven’t signed up yet, click here.
  2. LambdaTest Authentication Credentials: Be aware of your LambdaTest authentication credentials i.e. your LambdaTest username, access key and HubURL.You can retrieve them from your LambdaTest automation dashboard by clicking on the key icon near the help button.
  3. Download Tosca by logging in to the Tosca website.

Sample Test Scenario

For demonstrating Tosca-LambdaTest integration, we would be considering the following test scenario:

  1. Open LambdaTest Selenium PlayGround.
  2. Click the “Simple Form Demo” link.
  3. Enter the text “Happy Testing” in the text box.
  4. Click the “Get Checked value” button.
  5. Verify if the entered text is present under the “Your Message” section.Image

Integrating Tricentis Tosca With LambdaTest

Step 1: Launch the Tosca Commander.

Image

Step 2: Click Create new . In Create new workspace, select Type of Repository as None and set workspace as Tosca_Demo.

Image

Step 3: On the successful project creation, click the Modules tab, right-click on the panel, then select Scan -> Application.

Image

Step 4: Open Chrome browser and enter test URL.

Step 5: On the Select Application screen, select the Chrome browser instance that was open in the earlier step and click Scan

Image
Image

Step 6: Now you will be prompted to install Tosca Extension.

Image
Image

Step 7: Click on Advanced in Tosca XScan Window.

Image

Step 8: Click Select on screen.

Image

Step 9: Select the Simple Form Demo link and Tosca XScan will capture the highlighted element.

Image

Step 10: Click Finish Screen.

Step 11: In the browser click the Simple Form Demo link, navigate to the Simple Form Page. ReOpen Tosca XScan ,Click Select on screen and capture required elements for test case.(input text box, “Get Checked value” button and text area to validate)

Step 12: On completion click Finish Screen All the captured elements are listed under Modules are below:

Image

Step 13: Go to TESTCASES and create a folder named LambdaTest_TestCase.

Image

Step 14: Drag the Modules created in the earlier steps to the new test case Details tab.

Image

Step 15: To add commonly used modules in the test case, go back to the Modules tab. Click HOME in the menu bar, then click Import Subset.

Image

Step 16: Select standard.tsu file from <installation_path>/Tosca_Projects/ToscaCommander folder.

Image

Step 17: Navigate back to TestCases Details tab, update the test step names:

  • New TestCase to LT_PlayGroudTest_1
  • New TestCase_1 to LT_PlayGroudTest_2
Image

Step 18: Select the first test case and press CTRL + T. This will display a list of all the common modules. Type OpenUrl in the search box and select the OpenUrl module to add to the test case.

Image

Step 19: Again press CTRL + T type CloseBrowser in the search box, select CloseBrowser module to add to the test case.

Image

Shown below is the final test case view.

Image

Step 20: Enter relevant details in Value and ActionMode columns for every test step

Image

Step 21: For adding test configuration, navigate to the TestCase -> Test Configuration, right-click and click Create Test configuration parameter button.

Image

Step 22: Add below name and values in Test Configuration:

Image
  • Browser : chrome
  • BrowserVersion : 98(select latest available version)
  • HubAddress : https://(username):(accesskey)@hub.lambdatest.com/wd/hub (replace username and accesskey with your credentials)

You can refer our capability generator to choose different browser combination.

Image

Step 23: Go to the Details tab then Right-click on the test case and select Run in ScratchBook. This will launch the test on LambdaTest Platform.

Once execution is completed result window populate in Tosca

Image

Monitor and analyze your test result on the LambdaTest Automation Dashboard.

how to check if browser is open in tosca

our testcase looks alright to me. I just tried myself and this should work. After you’ve run the test you can always open up the scratchbook again, by clicking the ‘scratchbook’ button in the ribbon on the ‘home’ tab in the ‘go to’ group: 

You should then see the details of your last run. A very common thing that happens to me is that Tosca cannot uniquely identify the window (e.g. because I have two windows with the same title open). The error would look like this: 

So I’d check if opened the demo webshop more than once.

What is also good to know is, that Tosca will use your standard browser in the ‘OpenUrl’ module if you have not specified it otherwise, and the ‘Window Operation Module’ is agnostic to that. You can explicitly specify which browser to use in the ‘OpenUrl’ module by providing a TestConfiguration Parameter like this:

specifying the testconfiguration parameter for the browser to use

just use CloseBrowser module which can be found under Standard Modules.

Standard Modules are the set of modules which are shipped by default along with the installation of any Tosca instance.

enter image description here

Conclusion

Let us know your thoughts in the comment section below.

Check out other publications to gain access to more digital resources if you are just starting out with Flux Resource.
Also contact us today to optimize your business(s)/Brand(s) for Search Engines

Leave a Reply

Flux Resource Help Chat
Send via WhatsApp