Learn Software Testing from the Best Tutors
Search in
Answered on 02/04/2022 Learn Software Testing
Risha Shah
Traditional Yoga Trainer and Instuctor
Lesson Posted on 29/11/2021 Learn Software Testing
Software Testing Course in Latur - Online Classes Available | SevenMentor
Mahima
Learn Software Testing Certification Course in Latur in Affordable Fees from Best Software Testing Training...
Testing is executing a framework to recognize any holes, blunders, or missing necessities in opposition to the real prerequisites.
This instructional exercise will give you an essential comprehension on programming testing, its sorts, strategies, levels, and other related wordings.
For what reason to Learn Software Testing?
In the IT business, huge organizations have a group with liabilities to assess the created programming in setting of the given prerequisites. Additionally, engineers likewise lead testing which is called Unit Testing. By and large, the accompanying experts are engaged with testing a framework inside their separate limits −
Various organizations have various assignments for individuals who test the product based on their experience and information like Software Tester, Software Quality Assurance Engineer, QA Analyst, and so forth
Applications of Software Testing
Savvy Development - Early Software Testing Training in Latur saves both time and cost in numerous angles, but diminishing the expense without testing might bring about an inappropriate plan of a product application delivering the item futile.
Product Improvement - During the SDLC stages, testing is never a tedious cycle. Anyway diagnosing and fixing the mistakes recognized during appropriate testing is a tedious however useful action.
Test Automation - Test Automation lessens the testing time, yet it is unimaginable to expect to begin test computerization whenever during programming advancement. Test robot ought to be begun when the product has been physically tried and is steady somewhat. Besides, test computerization can never be utilized if necessities continue to change.
Quality Check - Software Testing Course in Latur helps in deciding after set of properties of any product, for example,
This instructional exercise is intended for programming testing experts who might want to comprehend the Testing Framework exhaustively alongside its sorts, strategies, and levels. This instructional exercise furnishes enough fixings to begin with the product testing process from where you can take yourself to more significant levels of mastery.
Requirements
Prior to continuing with this instructional exercise, you ought to have a fundamental comprehension of the product improvement life cycle (SDLC). Furthermore, you ought to have a fundamental comprehension of programming utilizing any programming language.
read lessLesson Posted on 22/11/2021 Learn Software Testing
Sarthak
public class Priority {
@Test (priority=1)
public void login() {
System.out.println("login");
}
@Test
public void email1() {
System.out.println("email1");
}
@Test (priority=-2)
public void email2() {
System.out.println("email2");
}
//I want a particular test case to run first ....we have to give the ordering
//by default priority=0
//-3 -2 -1 0 1 2 3
//if we have the same priority of 2 test cases then it will run in chronological order
}
Learn Software Testing from the Best Tutors
Lesson Posted on 18/11/2021 Learn Software Testing
TestNG Annotations and its sequence
Sarthak
public class TestNGAnnotations {
@BeforeMethod
public void beforeM() {
System.out.println("Before Method");
}
@AfterMethod
public void afterMethod() {
System.out.println("After Method");
}
@BeforeClass
public void beforeCl() {
System.out.println("Before Class");
}
@AfterClass
public void afterCls() {
System.out.println("After Class");
}
//Certain code before each Testname
@BeforeTest
public void beforeT() {
System.out.println("Before Test");
}
@AfterTest
public void afterT() {
System.out.println("after Test");
}
@BeforeSuite
public void beforeSuite() {
System.out.println("before Suite");
}
@AfterSuite
public void afterSuite() {
System.out.println("after Suite");
}
@Test
public void testcase1() {
System.out.println("testcase1");
}
@Test
public void testcase2() {
System.out.println("testcase2");
}
}
read lessLesson Posted on 18/11/2021 Learn Software Testing
Example of DependsOnMethod in TestNG
Sarthak
public class dependsonM {
@Test
public void login() {
System.out.println("login");
}
@Test (dependsOnMethods = {"login"})
public void email() {
//Intentionally I am failing this testcase
Assert.assertTrue(false);
System.out.println("logout");
}
@Test (dependsOnMethods = {"login", "email"})
public void logout() {
System.out.println("logout");
}
}
read lessAnswered on 04/12/2020 Learn Software Testing
Alkesh Kaba
IT Professional Trainer with 8 Years of Experience in IT Industry (C,C++, PHP, Python, SQL,ETC)
If you can do programming then, you can start your career with any programming that gives you the right package and scope is very good. But if you are feeling link, you will not be able to do programming, then learn Software Testing. Gap Doesn't matter; everything is dependent on your passion and interest.
read lessLearn Software Testing from the Best Tutors
Answered on 16/11/2020 Learn Software Testing
Saikishore Bolla
IT professional with 11 years of experience in Software testing
Lesson Posted on 24/07/2019 Learn Software Testing
Kiran Ayyagari
I am an Automation Engineer with experience of 4.7 years in Selenium with Java, TestNG, Cucumber framework...
TestNG Concepts
TestNG:
TestNG is an automation framework to run the test cases, test suites and do parallel testing. It is an advanced version of Junit. It consists of many features like annotations, groups, parameterization and listeners. It generates html reports as well which is an advanced feature.
Annotations of TestNg:
There are different types of annotations present in TestNG which are used for organized and reusable tests.
Example:
<suite name="SampleTestNGXml">
<test name="TestNGAnnotationsExample">
<parameter name="browser" value="Firefox"/>
<parameter> name=”Url” value=” https://www.google.com”
<classes>
<class name=" TestNgExample" />classes>test>suite>
public class TestNgExample()
{
@Parameters({“browser”})
@BeforeSuite
public void setup(String browser){
if(browser.equlas(“Firefox”)){
WebDriver driver = new FirefoxDriver();
}
else if(browser.equals(“chrome”)){
System.setProperty(“webDriver.chrome.driver”,path);
WebDriver driver = new ChromeDriver();
}
else if(browser.equals(“IE”)){
System.setProperty(“webDriver.ie.driver”,path);
WebDriver driver = new InternetExplorerDriver();
}
}
@BeforeClass
Public void browserSetup(){
DesiredCapabilities dc = new DesiredCapabilities.firefox();
driver = new FirefoxDriver(dc);
driver.manage().timeouts().implicitlywait(60,TimeUnit.SECONDS);
driver.manage().window().setSize(new Dimension(1920,1080));
}
@Parameters({“Url”})
@BeforeTest
public void beforeTest(String url){
driver.get(url);
driver.manage().window().maximize();
}
@DataProvider(name = “sample”)
public object[] getData(){
return new Object[]{
{“TestNg”}}}
@Test(dataProvider=”sample”)
Public void minTest(String searchText){
WebElement searchBox = driver.findElement(By.Id(“fakebox-input”));
searchBox.sendKeys(searchText);
}
@AfterTest
Public void afterTest(){
System.out.println(“any reporting activities using extent Reports”);
}
@AfterClass
Public void afterClass(){
driver.close();
}
@AfterSuite
Public void teardown(){
driver.quit();
}
}
List of Attributes which we use in @Test method:
eg: @Test(alwaysRun= true)
eg: @Test(enabled = false)
eg: @Test(Priority = 1)
eg: @Test(groups = “smoketesting”)
eg: @Test(dependsOnGroups = “smoketesting”)
eg: @Test(dependsOnMethods=”testMethodName”)
Example:
Public class attributeExample(){
@Test(groups=”smoketesting”)
public void test1(){
System.out.println(“This method belongs to smoketesting group”);
}
@Test(groups=”smoketesting”)
public void test2(){
System.out.println(“This method belongs to smoketesting group”);
}
@Test(dependsOnGroups=”smoketesting”)
public void test3(){
System.out.println(“This method runs after smoketesting group methods run”);
}
@Test(dependsOnMethods=”test1”)
public void test4(){
System.out.println(“This method runs after test1 runs”);
}
@Test(enabled = false)
Public void test5(){
System.out.println(“This method will not run till test case is enabled”);
}
@Test(alwaysRun = true)
Public void test6(){
System.out.println(“This method always runs”);
}
@Test(priority=1)
Public void test7(){
System.out.println(“This method runs before any other test method runs as it has first priority”);
}
}
depends tag in testing.xml:
Till now we have seen dependsOnMethods and dependsOnGroups used for @Test methods to depend on groups and methods. But , we can use the depends on tag in testing.xml to perform the same operation without using the attribute.
Example:
Include&Exclude Tags in TestNg.Xml:
Include and Exclude Tags are used in testing.xml to include or exclude any @Test method to run
Example:
TestNG Listeners:
TestNG listeners are used to execute before or after @test method or suite runs. There are different types of TestNG listeners. Please find them below.
IsuiteListener: This is an interface which has two methods called onStart() and onFinish(). If a class implements this listener, these methods will run before and after the suite runs.
ITestListener: This interface is also similar to IsuiteListener but the difference is that it will run before and after Test runs. It consists of below methods.
onStart(): This method will run before @Test method runs
onFinish():This method will run after @Test method runs
onTestFailure(ITestResult result): runs whenever a test fails
onTestSkipped(ITestResult result) : runs whenever a test is skipped
onTestSuccess(ItestResult result): runs whenever a test is succeded
IInvokedMethodListener: This listener will run before and after every method is run. It consists of two methods.
beforeInvocation(): Invokes before each method runs
afterInvoction(): Invokes after each method runs
Example:
public class sampleListener implements ItestListener,IsuiteListener,IInvokeMethodListener{
public void onStart(ISuite suite){
System.out.println(“runs before suite is started”);
}
public void onFinish(ISuite suite){
System.out.println(“runs after suite is started”);
}
public void onStart(ITestContext testContext){
System.out.println(“runs before test is started running”);
}
public void onFinish(ITestContext testContext){
System.out.println(“runs after test is started running”);
}
public void onTestSuccess(ITestContext testContext){
System.out.println(testContext .getName()+“ is successful”);
}
public void onTestFailure(ITestContext testContext){
System.out.println(testContext .getName()+“ is failed”);
//Taking failed Test cases screenshots
File src = ((TakeScreensot)driver).getScreenshotAs(OutputType.FILE)
FileUtils.copyFile(src, new File(path));
}
public void beforeInvocation(IInvokedMethod method,ItestResult result){
System.out.println(“This method is invoked before every method runs”);
}
public void afterInvocation(IInvokedMethod method,ItestResult result){
System.out.println(“This method is invoked after every method runs”);
}
}
Including listener in Testngclass:
@Listeners(sampleListener)
public class testngSampleTest(){
@Test
public void test1(){
Including listener tag in TestNg.xml:
read lessLesson Posted on 13/07/2019 Learn Software Testing
What is debugging? and its importance
Vihanga EmbedSoft
Vihanga embedsoft is India's only training institute for safety-critical embedded software. We enable...
Debugging is a step by step process of identifying the errors present in the code. The question here is what kind of mistakes? Usually errors are of two types.
1. Syntax errors
2. Logical errors.
Syntax errors are those where an error present in the syntax of a construct of a language. Such errors are identified by a compiler.
Logical errors are those where an error present in the logic of the software problem statement. i.e. Software program runs but produces incorrect output.
Logical errors are identified by the debugging process.
How to perform Debugging?
Debugging is not rocket science. It is straightforward. One who knows the software programming knows the debugging activity, but do not see the activity they are performing is debugging. Let me explain with an example.
Consider an example C Program of finding a square root of a number without using an SQRT function. Usually, the code for this program is around 20 lines.
Anyone who writes the program will follow three steps. i.e.
1. read inputs
2. process inputs to produce outputs
3. Display outputs
To read inputs from the console in C, one uses scanf() function.
Similarly to display the outputs on the console, one uses printf() function.
Process operation contains different control structures, loops etc..
On completing the program, one tries to run it to see the written program is correct or not.
To check that, one need to give input value to the program say 9. The square root of 9 is three, but the program is displaying other than 3. Now we know that the program is written is not performing Square root functionality correctly. Next step we do is we start analysing the code by printing intermediate values of the logic with the help of the print() function and re-run the program. Now you see the intermediate output displayed correctly or not. If correct, then you know the logic written up to this point is right. Then shift the print() function down and check again. Repeat the process until you find that the intermediate output is deviating from the correct output. It is the area we know that computation is going wrong.
This process is called Debugging. Identifying where the error accurately is called localising and correcting the error is called Fixing. Therefore to summarise, Debugging process constitutes Debugging, Localizing and Fixing.
Instead of placing printf() statement in the code, there are tools available. With these tools, one can mark a breakpoint and run the program up to that point and check the intermediate output variables or one can run the program statement by statement called step by step method. These features help you to identify the logical errors quickly.
Importance of Debugging?
Usually, logical errors are complicated to remove and consumes more time in the projects to eliminate them. So debugging process helps one to identify the logical error and eliminate them quickly.
Finally, with excellent Debugging skills, an average programmer/Tester become gets an extra-ordinary rating. But without debugging skills, an extra-ordinary programmer/Tester looks very ordinary.
Learn Software Testing from the Best Tutors
Answered on 05/08/2019 Learn Software Testing
Grace Phosiya
Software Tester with 5 years Experience, two years in to tutoring
UrbanPro.com helps you to connect with the best Software Testing classes in India. Post Your Requirement today and get connected.
Ask a Question
The best tutors for Software Testing Classes are on UrbanPro
The best Tutors for Software Testing Classes are on UrbanPro
Book a Free Demo