Tuesday, May 4, 2021

Kindly contact for online software testing courses by video conference.

Courses Available For Engineering Students:

  1. Software Manual Testing

  2. Software Automation Testing

  3. Selenium WebDriver

  4. Core Java

  5. BrowserStack, Mailinator, Jenkins, Jira, TestRail, and other testing related tools

    Kindly contact: 1feb1986@gmail.com

    You can use the contact form for any query.

    Thanks: Prashant Chauhan

 General Principles of Testing:

===================

  • Principle 1: Testing shows the presence of defects, not their absence.

Testing can show that the product fails, i.e., that there are defects. Testing cannot prove that a program is defect-free. Adequate testing reduces the probability that hidden defects are present in the test object. Even if no failures are found during testing, this is no proof that there are no defects.

 

  • Principle 2: Exhaustive testing is impossible.

It’s impossible to run an exhaustive test that includes all possible values for all inputs and their combinations combined with all different preconditions. Software, in normal practice, would require an “astronomically” high number of test cases. Every test is just a sample. The test effort must therefore be controlled, taking into account risk and priorities.

 

  • Principle 3: Testing activities should start as early as possible.

Testing activities should start as early as possible in the software life cycle and focus on defined goals. This contributes to finding defects early.

 

  • Principle 4: Defect clustering. Defects are not evenly distributed; they cluster together.

Most defects are found in a few parts of the test object. Thus if many defects are detected in one place, there are normally more defects nearby. During testing, one must react flexibly to this principle.

 

  • Principle 5: The pesticide paradox. Insects and bacteria become resistant to pesticides.

Similarly, if the same tests are repeated over and over, they tend to lose their effectiveness: they don’t discover new defects. Old or new defects might be in program parts not executed by the test cases. To maintain the effectiveness of tests and to fight this “pesticide paradox,” new and modified test cases should be developed and added to the test. Parts of the software not yet tested, or previously unused input combinations will then become involved and more defects may be found.

 

  • Principle 6: Testing is context-dependent.

Testing must be adapted to the risks inherent in the use and environment of the application. Therefore, no two systems should be tested in the exactly same way. The intensity of testing, test exit criteria, etc. should be decided upon individually for every software system, depending on its usage environment. For example, safety-critical systems require different tests than e-commerce applications.

 

  • Principle 7: No failures mean the system is useful is a fallacy.

Finding failures and repairing defects does not guarantee that the system meets user expectations and needs. Early involvement of the users in the development process and the use of prototypes are preventive measures intended to avoid this problem.

 

#HappyLearning

Wednesday, October 9, 2019

How to work with Test Fairy links to upload the build in browser stack ?



When you get the test fairy mail for installing any build on browser stack then follow below rules:


  • Open the Test Fairy mail
  • Click on the install app link like Click Here
  • One url will open like "https://my.testfairy.com/download/74R32C9K70TJTD1J68W38DHN6DVQ0PMW1V3AFVVND4RYFYHSWPNY5DSC/getapp?_=1569570891"
  • Delete the url from backward till /getapp like "https://my.testfairy.com/download/74R32C9K70J68W38DHN64SJV6DVQ0PMW1V3AFVVND4RYFYHSWPNY5DSC/"
  • Add install.plist text on same place like "https://my.testfairy.com/download/74R32C9K70TJTD1J68W38DSJV6DVQ0PMW1V3AFVVND4RYFYHSWPNY5DSC/install.plist"
  • And submit the url
  • Copy the ipa String url from new xml page like: <string>https://d3bgf4y6nbjwg6.cloudfront.net/73673/8e8a67153d2abe619f6b7bdb03fc2a4c12a1e9c9/ApplicationName.ipa </string>
  • Open this ipa url to browser and get the submit button then one build will be saved in your system
  • Then upload this build to the browser stack and you will be ready to test the build


Wednesday, June 21, 2017

How to log off the Virtual Machine without any services interruption on the same?

I was working with the VM and always my pulse secure connection was disconnected hence my application was down, So I got the batch file which is logging off the system properly without disconnecting the VPN connection. 

The batch job text is written below:

========================================

@ECHO OFF
C:\Windows\System32\tscon.exe rdp-tcp#0 /dest:console 
C:\Windows\System32\tscon.exe rdp-tcp#1 /dest:console 
C:\Windows\System32\tscon.exe rdp-tcp#2 /dest:console 
C:\Windows\System32\tscon.exe rdp-tcp#3 /dest:console 
C:\Windows\System32\tscon.exe rdp-tcp#4 /dest:console

========================================

And Save the above text as any bat file like "SoftLogOff.bat" and save in the VM system.

While logging off you should double-click on this bat file and then the system will be logged off.

Thank you.


How to restrict second user on Virtual Machine entry while first one is logged on


I find a method that the second user cannot "kick of" the first user.

Do you only want one user access the remote desktop at one time? If so, you can set the Group Policy to limit the number of the connections.

Open the Group Policy Editor, Locate to:
Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections

On the right pane, double-click Limite number of connections, click Enable, set the RD Maximus Connections allowed to 1.

In this way, the group policy restricts the second user to log on the remote desktop if someone is using the remote desktop.

Tuesday, May 30, 2017

Writing text in internet explorer while using element.sendKeys("abc") is very slow.


You can change to the 32-bit version, but in 64 bit IE is required then you can try this solution:

Internet Options -> Security -> Check "Enable Protected Mode" for all zone
Go to Advanced -> Security -> Check "Enable Enhanced Protected Mode"

=> No more snail typing on 64 bit IE (xD)

Thursday, March 16, 2017

What is test automation framework and it's basic framework types ?

A test automation framework is a combination of guidelines, coding standards, concepts, practices, processes, project hierarchies, reporting mechanism, test data, to support automation testing. A tester follows these guidelines while automating applications to take advantage of various productive results.

There are many types of test automation frameworks available in the market, and the most popular ones are listed here. Each one of these frameworks has their individual characteristics and features.
Let us now examine some of the popular frameworks and understand their pros, cons, and usability recommendations:

# Keyword-driven framework
In the keyword-driven framework, testers create various keywords and associate different actions or functions with each of these keywords. Function library contains the logic to read the keywords and call and perform the associated actions. Generally, test scenarios are written in excel sheets. The driver script reads the scenario and performs test execution. This is used in situations where the testers who create test scripts have less programming expertise, whereas framework creation is done by automation experts

# Hybrid framework
The hybrid automation framework is created by combining distinct features of two or more frameworks. This enhances the strengths of the different frameworks and mitigates their weaknesses. It is highly robust, flexible, and more maintainable. However, this requires strong technical expertise to design and maintain.

# Behavior-driven development framework
Behavior-driven development (BDD) framework automates validations in an easily readable and understandable format to business analysts, developers, testers, etc. Such frameworks do not
necessarily require the user to be acquainted with any programming language. There are different tools available for BDD like Cucumber, JBehave, and more which work along with other test automation tools. This framework is more suitable for applications using agile methodology and where user stories and early automation are required. It focuses on the behavior of the system rather than the implementation aspect of the system. The traceability between requirements and scripts is maintained throughout, and test scripts are easy to understand for the business users.