SugarCRM Automation Testing

SugarCRM Automation Testing using Selenium by Techaroha

SugarCRM Automation Testing using Selenium by Techaroha

Why is SugarCRM Automation Testing Required?

Every growing company needs CRM and they customize it according to the requirement for their business.CRM needs changes with the market and technical/testing team has to keep up themselves with the market.

Generally, SugarCRM system is vast and manage many things other than customer relationship. In such scenario tester’s and quality control professional find it difficult to decide what to test and what not.

Testing everything from the start will consume too much time increasing the cost of the product , if testers leave something untested it may lead to the quality issue. The only solution to this problem is to automate the testing and implement SugarCRM Automation Testing.

How ?

In Automation, Selenium is the best tool for Testing sugar CRM  Here, We can access all elements and operate for testing dynamically.

Validation is the process to evaluate sugarCRM quality and development phase.So, I have to find all required elements and compare Actual result to Expected Result.

For, Quality check I use Chrome Driver, Chrome users are increases frequently, still, we also can use Firefox Driver.

System.setProperty(“webdriver.chrome.driver”,”E:\\Driver\\chromedriver.exe”);

ChromeOptions options = new ChromeOptions();

While Testing browser should disable other Extensions for automation Tool

options.addArguments(“–disable-extensions”,”–test-type”);

WebDriver driver = new ChromeDriver(options);

Login SugarCRM using selectors id,

driver.get(“http://crm.ihealthassist.in”); driver.findElement(By.id(“user_name”)).sendKeys(new String[] {“username”});

driver.findElement(By.id(“user_password”)).sendKeys(new String[]{“password”});

driver.findElement(By.id(“login_button”)).click();

When searching for Element in form, driver expires the session until element has been found, But timeout expires before throwing a NoSuchElementException and increasing the implicit wait timeout.

driver.findElement(By.xpath(“//*[@id=’moduleTab_0_Vendor’]”)).click();   driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS) ; driver.findElement(By.id(“create_link”)).click(); driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);

 

For Validation Assertion compare both expected and Actual Result,

Here, I have used “SoftAssert” because it continue with sequence even after an assertion fails in the sequence

//Validate Using Assertion

SoftAssert softAssert = new SoftAssert();

softAssert.assertEquals(Name_err_msg,”Missing required field: Name”);

softAssert.assertEquals(Url_Name_err_msg,”Missing required field: Url Name”);

softAssert.assertAll();

Please see the below video to see how SugarCRM Automation Testing works

For more details for implementing Automation Testing for SugarCRM please contact here.

Facebook Comments
Author:
Software Tester @ Techaroha Solutions Private Limited, Quality is gives completeness to subject so, I always approaching for best quality and requirement.
Comments
  • Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your blog? My website is in the very same niche as yours and my visitors would truly benefit from some of the information you present here. Please let me know if this alright with you. Cheers!

  • Thanks a ton for sharing the idea, I saved the site. I’m additionally attempting to find details around kmspico latest version, do you know where I could discover a thing such as that? I’ll be back in a little while!

Leave a Reply

Show Buttons
Hide Buttons