Skip to main content

Selenium| Functional Testing| Software Quality Assurance



Hello Everyone! Welcome back to MODTECHSTUFF. 
In this blog, we will talk about all the most  Selenium Functional testing Technology and how it is engaging the most recent Development!




Software Testing

Functional testing includes observing that your software does what it is intended to. It is an expansive term that covers numerous things. In any case, from a UI viewpoint, it has increasingly explicit importance. Normally, it implies smoke testing, coordination testing, and relapse testing. These days, the intricacy of UIs implies you truly need to mechanize your testing, so here is our concise introduction to Selenium's useful testing.

Functional testing does precisely what it says – test usefulness. This is particular from testing to discover bugs or execution testing. Practical testing can occur at each level in the framework, from unit testing right to acknowledgment testing. At the framework and UI level, there are 3 principal types of user testing: 

Smoke testing is utilized to rapidly watch that your manufacture is filling in true to form. As a base, you should run a smoke test each time you manufacture your code, regardless of whether there were no progressions made. Commonly, this includes going through the fundamental client streams instead of comprehensively testing everything. 

Regression testing is tied in with checking that the item despite everything capacities appropriately after the most recent changes. This is basic when you have included any new code or made changes to the usefulness. It is likewise important on the off chance that you have made any bug fixes since these have a terrible propensity for influencing different bits of code. This is any longer procedure that necessities to test each moving piece of your product. 

Integration testing is testing new functionality that has been incorporated into the framework. This is now and again testing if the new functionality has a major effect. It's essential to do integration testing for new UI includes just as backend and center usefulness. 

All these should be possible manually, however where conceivable, you should attempt to automate them. This will guarantee tests are run all the more productively and will accelerate the speed of your enterprise transfer.


Selenium

Selenium Functional Testing:

Selenium is an incredible structure for test automation. It has been about since 2004, making it an extremely experienced framework. Selenium utilizes test contents so as to check the usefulness of your UI. The content basically provides the rundown of orders that ought to be executed on the UI. The accompanying graph shows Selenium architecture. 

The test content is passed to the Selenium server. This uses JSON to speak with a suitable Web Driver. The Web Driver at that point passes the order to the genuine program and returns the outcome.

How to Create a Test Script:

A test content comprises of a progression of steps that Selenium will perform on the UI. You start by stepping through a point by point exam plan dependent on a particular client venture or a known method of setting off a bug. A basic test plan may resemble this: 

Go to the Facebook landing page 

Find the email field at the highest point of the page 

Enter "test@email.com" 
Find the secret phrase field close to the email field 
Enter "Pa12345" 
Find the login button close to the secret word field 
Press the button 

The most content would then proceed to watch that the right client page has stacked. 
The primary thing you have to choose is the thing that language to use for your content. Selenium can adapt to C#, Java, JavaScript, PHP, Python, and Ruby. Whichever you pick, it will be changed over to Selenese by the server.

A Decent Example with Python:


A basic Python program 

Let us take a look at Python for instance. The beginning of your content will instate things. 
from selenium import webdriver from selenium.webdriver.common.keys import Keys 
Presently you have to take a gander at a principal couple of steps of the test plan. To begin with, explore to the test URL:browser.get('https://www.facebook.com/') 

You presently need to recognize great component selectors for 3 components: the email field, the secret key field, and the login button. You have to discover a selector that is remarkable on the page and won't change each time the UI reloads. For additional subtleties on CSS selectors, you can peruse our ongoing online journal. Luckily, the FB login page has very straightforward selectors: "email", "pass", and "login button". Start with the email: 
""
client = browser.find_elements_by_css_selector("input[name=email]") 

user[0].send_keys('test@email.com') 

Presently, discover the secret word field and enter the right secret phrase: 

pass = browser.find_elements_by_css_selector("input[name=pass]") 

pass[0].send_keys('Pa12345') 

At long last, discover the login catch and snap it. 

login = browser.find_elements_by_css_selector("input[name=loginbutton]") 

login[0].click() 

""

You could have picked different selectors for the login button. For example, "input[type=submit]". In any case, on the off chance that you take a gander at the wellspring of the FB landing page, you will locate a few different catches with that type. This implies you truly need to locate a progressively extraordinary selector, else a future page change may bring about an inappropriate catch being clicked.

Wrap-Up:

Most scripts are considerably more mind-boggling than the abovementioned. For these, you will most likely need to create them a couple of steps one after another, checking at each stage on the off chance that they are correct. All together for Selenium practical testing to function admirably, you will likewise need to alter your content with the goal that it takes a shot at different programs and gadgets. For basic content like the above mentioned, this isn't an issue. In any case, for sensible contents, you may even wind up modifying the vast majority of the code. The aftereffect is, even talented engineers take numerous hours to make another test.  





Author:: HAROON

For more details please visit  MODTECHSTUFF

FOLLOW ME    














Comments

Post a Comment

Donate Us to Keep this site Alive! With PayPal

Popular posts from this blog

Top 5 Automation Testing Tools[2020]

Hello Everyone! Welcome back to another Fresh article of MODTECHST UFF where you Learn Automation testing. In this article, we will talk about Updated Top 5 Automation Testing Tools[2020] that will surely help you out. Quality at speed is the need of great importance in the product development industry. This is the reason associations are hoping to embrace Agile, Continuous Integration (CD), and DevOps techniques to discover arrangements. Test automation is a basic part of these techniques that can empower associations to give quality at speed.  In straightforward terms, automation testing is a procedure of automated test case execution and the creation of test results with no human intercession. It extensively brings down the expense and exertion that is in any case required in manual testing. It limits the possibility of mistakes by limiting excess manual work.  To execute automation testing, associations require the help of a decent automation testing organization...

How to Automate OTP using Appium and Selenium Framework ?

Hello Everyone! Welcome back to another Fresh article of MODTECHST UFF where you Learn Automation testing. In this article, we will talk about Integrating the OTP SMS reading capability with your Selenium - Appium Framework that will surely help you out. There can be three solutions to this problem. Solution 1: Ask your development team to fix the OTP check process to any static value. Solution 2: Ask your development team to provide you an API in which you can pass some parameter in response he can return you the OTP sent against that number.  Solution 3: Design two Appium scripts one is two handle Websites and one is to handle the Android message box, so after sending OTP from the web execute the second script to read a message from the message box. OTP is a 2-factor authentication mechanism that was build to avoid ROBOT / Automation SO you never find the solution direct solution for that. What is Appium? Appium is an open-source structure that permits you to lead automating test...

Write data from Excel file and Capture ScreenShot Using Selenium WebDriver

File Read and Write is a basic piece of any product or software process. We as often as possible make a document, open it, and update something or erase it in our Computers. The same is the situation with Selenium Automation. We need a procedure to control records with Selenium.  Java gives us various classes to File Manipulation with Selenium. In this article, we will figure out how might we Read Data on Excel documents with the assistance of the Java and Apache POI library. Do check my Latest video on Open Source Behavior-Driven Development (BDD) Tools and Subscribe my Channel for Latest Updates!!! Here is the link:::  https://youtu.be/t7EwU8LWfr0 Installing JAVA in your System. TestNG requires Java which means you should download and install Java on your system. In my previous blog, I have shown how to install JAVA on your computer in detail. Here is the link   https://modtechstuff.blogspot.com/2020/05/how-to-start-automation-using-selenium.html Eclipse Insta...

Ad

Enter your email address:

Delivered by FeedBurner