Selenium | Take UI screenshots when script is executed

written by : Webner
January 19, 2017
|
0 Comments
|

During testing a website with Selenium, function given below can take screenshot that can help us in cases like when testcase fails and we need the screenshot to see what happened on UI.

Here is function to take screenshot:-
public void screenshot(WebDriver driver, String fileName) {
try {
File src = ((TakesScreenshot Read more…

Java | Wide and Narrow typecast in Java with examples

written by : Ishpreet Kaur (Senior Software Engineer)
|
0 Comments
|

Cast means converting one data type to another data type.

Automatic Type Conversion

Automatic type conversion means programmer doesn’t need to write code for the cast. In Automatic Type Conversion, narrower data type is converted to broader data type automatically by Java. Automatic Type Conversion is also called Widening Read more…

Java | static variables, instance variables, final and static

written by : Komal Dhiman (Software Engineer)
|
0 Comments
|

Explain with an example which variables should become instance variables and which others should become static. Also when to use final with static and final without static? (JAVA)
INSTANCE VARIABLES

Variables that belong to the object of the class and each object can have its own value for such a Read more…

Java | Runtime Polymorphism

written by : Kunal Kumar (Software Engineer)
|
0 Comments
|

There are two types of polymorphism:

1) Compile Time Polymorphism (Method Overloading) – Here it is clear at compile time that which method call in the program will invoke which of the methods.

2) Runtime Polymorphism (Method Overriding) – Here it is determined at run time that which method needs to be Read more…

Java | Some basics

written by : Kritika Sood (Software Engineer)
January 18, 2017
|
0 Comments
|

How Java achieves platform independence

First thing is what platform independence means?
It means compiled Java code can run on any OS without change.

Now the question is how Java achieves this?
Java achieves this with the help of Bytecode and JVM (which is OS dependent).

When we compile a Read more…

Java | Benefits of declaring SerialVersionUID in your code

written by : Rita Sharma (Software Consultant)
|
0 Comments
|

SerialVersionUID is a class invariant that is used to validate that the classes on both sides of the wire are the same. During Serialization it marshals an object and sends it over the stream. During marshalling process, the SerialVersionUID is also transferred over the wire. The receiving process (Deserialization) compares Read more…

AWS Amazon CloudFront – How to enable cache for whole site

written by : Navneet Kashyap (Senior System Administrator)
|
0 Comments
|

AWS Amazon CloudFront is a web service that speeds up serving static and dynamic web content like, .html, .css, .php, and image files and videos. It also integrates with other Amazon Web Services like S3, EC2, Elastic Load Balancer and Route 53. It also works seamlessly with any non-AWS Read more…

Java | ‘default’ method implementation for methods in Java interfaces

written by : Neha Mishra (Senior Software Engineer)
|
0 Comments
|

Default method, a new concept used for interfaces has been added to Java 8.

Purpose:
In Java 7 or older, classes implementing an interface were forced to implement each method of the interface. Consider a long running project in which an interface is implemented by several classes and then you Read more…

Does Java support call by reference?

written by : Naresh Garg(Software Engineer)
January 16, 2017
|
0 Comments
|

Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers. Java does not support pointers and it is because pointers break the security. Java does manipulate objects by reference and all object variables are references. Pass Read more…

Selenium | how to upload a csv file with Selenium script

written by : Namisha Arora(Software Testing Consultant)
January 13, 2017
|
0 Comments
|

In this post I will give an example of how to upload a csv file with Selenium script to a webpage. Below is the screenshot of webpage:

Code to automatically select a csv file and then click Submit button is given below. Go through the comments in the code.
package Read more…

How to show slanted text and images using CSS?

written by : Parminder Kaur(Software Engineer)
|
0 Comments
|

Slanted text and Images in CSS for different browser is given by transform property in CSS. We need to specify the angle by which to slant the image or text. Angle can be negative or positive. Positive angle inclines the image in clockwise direction and negative angle inclined it in Read more…

Salesforce | Trap incoming email and extract email content with attachments in salesforce

written by : Kiranpreet Kaur(Software Engineer)
|
0 Comments
|

Problem:- Trap incoming email and extract email content with attachments in salesforce
Solution:- Salesforce provides us a mechanism to trap incoming emails on a specific email id and extra email contents including attachments out of it. To achieve this we need to follow these steps:

Create an apex class that Read more…

PHP | Load Data Infile to insert csv data into Mysql with PHP

written by : Virender Singh(Senior Software Engineer)
January 12, 2017
|
0 Comments
|

Problem:- How to insert csv data into mysql table with mysql query in php. What problems usually you face with this and how to resolve them.

Description:- I have csv file with thousands of records. I want to insert these records in mysql table with php.

Solution:- There are many Read more…

Moodle/Totara | Creating a new Activity Plugin

written by : Savina Chandla(Senior Software Engineer)
|
0 Comments
|

Introduction: In Moodle/Totara we can add different type of activities to a course by selecting from the list of standard activities available. As shown in the the list below:-

But there might be some cases in which we need to add a custom activity to a course having its Read more…

CSS | Animate elements in background screen

written by : Neelam Thakur(Senior Web Developer)
January 11, 2017
|
0 Comments
|

We can move elements on background screen using css properties:
Below @keyframes rule specifies the animation code
And “movement” gives a name to the animation
@keyframes movement {
0% { background-position: 0px 0px, 0px 0px, 0px 0px }
50% { background-color:#FFA07A }
100% {
background-position: 500px 1000px, 400px 400px, 300px 300px;
background Read more…

Java | difference among return, continue, break and System.exit in Java

written by : Manpreet Kaur(Software Engineer)
|
0 Comments
|

Q1. What is the difference between return, continue, break and System.exit statements in Java?

Answer:-The differences among these 4 statements are described here:

Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce, Zoho), LMS Apps (Moodle/Totara), Websites and Mobile apps. If you Read more…

Selenium | Data Driven Framework to read csv data

written by : Webner
January 10, 2017
|
0 Comments
|

During testing I had a test case to add multiple employee automatically with selenium script so I have implemented Data Driven Framework. Using this we have to read the data from the csv and register all the users in the system.

Note:- We need to add a jar file into Read more…

Eclipse SVN | Working Copy XXXX Locked during commit

written by : Nitin Pant(System Administrator)
|
0 Comments
|

When you do svn update or commit in Eclipse you may face this problem- “working copy xxxxx locked”

Solution:- Sometimes problem can be solved with “project cleanup” or “move the project to some other location without .project and .svn files”. But you may have to solve it by manually deleting Read more…

Enum in Java

written by : Richa Sharma(Sr. Software Engineer)
January 9, 2017
|
0 Comments
|

What is Enum/Enumeration?

Enum/Enumeration is a data type in Java which is used to store a fixed set of constant values. For example, number of days in a week or a set of arithmetic operators (addition, subtraction, multiplication and division) or status of a customer’s bank account Read more…

Java | Deep cloning object containing list of other objects

written by : Harleen Kaur(Software Engineer)
|
0 Comments
|

Suppose you have a class like this:
public class Student
{
private String name;
private int rollNumber;
private int grade;
private List subjects;
}

This is the Subject class

public class Subject
{
private String sName;
}
You have an object sObj1 of Student class and it also contains a list of subjects assigned Read more…

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Next page ›
Send your message