What is Amazon S3
Amazon S3 enables companies to store massive amount of data in a secure way. S3 enables companies to store, retrieve data. Benefits: High durability, availability, and scalability. S3 provides the most comprehensive compliance capabilities. S3 allows data storage up to 5 terabytes S3 provides a REST web services interface supporting any internet development tool kit. S3 is …
Components of 3 tier architecture – Web server vs Application server vs Database server
Web server serves a web content (HTML and static content) over the HTTP protocol. Application server is a container on which one can build and expose business logic and processes to client applications through various protocols like HTTP. Some cases it will have internal web server. Application server is heavy in terms of resource usage. …
Components of 3 tier architecture – Web server vs Application server vs Database server Read More »
What is amazon aws
amazon-aws Amazon Web Services (AWS) is a subsidiary of amazon.com. AWS currently provides more than 100 services and helps to setup high computing power, data storage, queuing, notification, machine learning, security, monitoring services available under AWS management console. AWS Free Tier includes 750 hours of Linux and Windows t2.micro instances each month for one year as per …
How to take snapshot of browser using selenium
Code sample as below: File srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(srcFile, new File(“snapshot.png”));
How to run selenium on linux server using Firefox binary
How to run selenium on linux server using Firefox binary String Xport = System.getProperty(“lmportal.xvfb.id”, “:1”); // setup firefox binary to start Xvfb final File ffPath = new File(System.getProperty(“lmportal.deploy.firefox.path”, “/usr/bin/firefox”)); FirefoxBinary ffBinary = new FirefoxBinary(ffPath); ffBinary.setEnvironmentProperty(“DISPLAY”, Xport); WebDriver driver = new FirefoxDriver(ffBinary, null); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.get(“URL”);
How to handle the error popup on site security certificate is not trusted with chrome selenium python automation
How to handle the error popup on site security certificate is not trusted with chrome selenium python automation For Chrome, add –ignore-certificate-errors in following code options = webdriver.ChromeOptions() options.add_argument(‘–ignore-certificate-errors’) driver = webdriver.Chrome(chrome_options=options) driver.get(‘URL’) For the Internet Explorer, set acceptSslCerts desired capability as true: capabilities = webdriver.DesiredCapabilities().INTERNETEXPLORER capabilities[‘acceptSslCerts’] = True driver = webdriver.Ie(capabilities=capabilities) driver.get(‘URL’) For Firefox, …
What are the limits in Salesforce
What are the limits in Salesforce Master detail relationships – 2 Look up relationships – 40 No.of dashboard components – 20 Total Workflow rules per object – 500 Active workflow rules – 50 Approval process – 500 Sharing rules (Criteria and Ownership based) – 300 Sharing rules (Criteria based only) -50 Validation rules – 100 …
Nia’s readings
Nia’s readings from Library, Ms. Leakey Is Freaky! – by Dan Gutman Ms. Hannah Is Bananas! – by Dan Gutman Nancy Drew and the Clue Crew- Case of the Sneaky Snowman by Carolyn Keene Diary of a Wimpy Kid Rodrick Rules by Jeff Kinney Help your Kids with Computer Coding The phantom bully by Jeffrey …
Salesforce Admin Syllabus
Salesforce Admin Syllabus Types of Objects & Fields Standard Objects (Sample video link below) Custom Objects (Sample video link below) Standard Fields Custom Fields Types of Relationships, Field Dependency Visualforce Custom, Console application Field Accessibility Grant Login Access Calendar, Console Tab Trusted IP Ranges Session Settings Different types of Email templates Text HTML (using Letterhead) Custom …
QA Automation Interview questions
QA Automation Interview questions Differentiate final , finally, finalize (Short Ans: final method can’t be overridden, final variable can’t be changed, finally goes with try/catch, finalize is garbage collector) how to handle exceptions in java (Ans: try catch, throws, etc) how to use parameters in cucumber/testNG (Ans: scenario outline,tidy gherkin plugin, vs testng.xml-suite,test,class,method;) compare TestNG …
Nested Java program loops
Nested Java program loops import java.util.Scanner; class NestedIfElse { public static void main(String[] args) { int marksObtained, passingMarks; char grade; passingMarks = 40; Scanner input = new Scanner(System.in); System.out.println(“Input marks scored by you”); marksObtained = input.nextInt(); if (marksObtained >= passingMarks) { if (marksObtained > 90) grade = ‘A’; else if (marksObtained > 75) grade = …
If else program in Java
If else program in Java import java.util.Scanner; class IfElse { public static void main(String[] args) { int marksObtained, passingMarks; passingMarks = 40; Scanner input = new Scanner(System.in); System.out.println(“Input marks scored by you”); marksObtained = input.nextInt(); if (marksObtained >= passingMarks) { System.out.println(“You passed the exam.”); } else { System.out.println(“Unfortunately you failed to pass the exam.”); } …
For-loop in Java
For-loop in Java class ForLoop { public static void main(String[] args) { int c; for (c = 1; c <= 10; c++) { System.out.println(c); } } }
Protected: My Scribbling Notes
There is no excerpt because this is a protected post.
Summary of Web services and API testing using UFT
Summary of Web services and API testing using UFT Web services Demand of Web services is already high in the new internet era since applications are built in different technology / databases and connected through internet. So communication between is only possible through a commonly accepted media which are Web services Web …
Summary of Web services and API testing using UFT Read More »
Maven TestNG framework with reporting features and switching pages
Maven TestNG framework with reporting features and switching pages 1. Setup a Maven project in Eclipse with POM file as below Refer the Post-Man plugin highlighted below in yellow Refer the reporting directory path highlighted below in yellow POM file sample as below – you can copy paste this contents for any Maven TestNG project. …
Maven TestNG framework with reporting features and switching pages Read More »
Cucumber Scenario data table and Scenario Outline data table
What is TestRunner in Cucumber? Cucumber – Behavior driven development (BDD) Cucumber Scenario data table and Scenario Outline data table 1.Cucumber Scenario data table Sample feature file contents as below: Feature: Login and Logout Action Scenario: Successful Login with Valid Credentials Given User is on Application Home Page When User Navigates to Application LogIn …
Cucumber Scenario data table and Scenario Outline data table Read More »
4 Dimensional Arrays in Java
4 Dimensional Arrays in Java Sample code for 4 Dimensional Arrays in Java package javaArrays; import java.util.Scanner; public class FourDimArray { public static void main(String[] args) { int a[][][][] = new int[5][4][3][2]; int i,j,k,l, num = 1; for (i=0; i<5; i++) { …
Summary on Cloud, Machine learning, Artificial intelligence and other emerging technologies
Summary on Cloud, Machine learning, Artificial intelligence and other emerging technologies Salesforce Salesforce.com is an American cloud computing company. Salesforce offers Software as a Service (SaaS) platform which helps in Customer Relationship Management. It has a multi-tenant architecture and subscriptions. The following are the application clouds in Salesforce CRM. Sales Cloud 2. Service Cloud 3. Marketing …
Summary about Jmeter and performance testing
Summary about Jmeter and performance testing Jmeter recording How to create Jmeter scripts? Recording Jmeter scripts using Jmeter’s HTTP(S) Test Script recorder. There are two ways 1) Manually adding scripts ( Test plan >> Tread Group >> Add>> Sampler >> HTTP Request ) 2) Recording using Jmeter’s HTTP(S) Test Script recorder How to record Jmeter …
Summary about Jenkins, Selenium and QTP automation frameworks
Summary about Jenkins, Selenium and QTP automation frameworks How to run Jenkins locally 1) go to https://jenkins.io and download Jenkins.war file 2) place the war file in a folder (e.g. C:\Jenkins\Jenkins.war ) 3) then open command prompt (windows start menu > run > cmd will open command prompt ) 4) in command prompt, go to …
Summary about Jenkins, Selenium and QTP automation frameworks Read More »
Summary on Web testing and mobile apps
Summary on Web testing and mobile apps What is the difference between Web Layer (Presentation Tier) vs Application Layer (Logic Tier) vs Database Layer (Data Tier) Presentation Layer is the interface to outside world e.g. web site. Application Layer is a framework to create the interface to the Web site or Presentation Tier Database …
Successful test automation
Successful test automation approach – simplest way to build cost effective automation frameworks which can give better ROI. To maximize automation benefits in terms of best output and cost effectiveness is by implementing best matching framework based on your product line. When an organization plans for cost effective automation frameworks, they can always consider 2 …
What is Block chain and cryptocurrency
What is Blockchain and cryptocurrency To understand more about Blockchain and cryptocurrency, lets explain about current Banking system works. Current Banking systems : when a user does an online or ATM transaction , the centralized banking ledger verifies and confirm the authenticity of accounts. For that work, every bank or third party sites charges to user. Blockchain …
Top 20 cryptocurrency 2017
Top 20 cryptocurrency 2017 bitcoin BTC ethereum ETH bitcoincash BCH ethereumclassic ETC litecoin LTC einsteinium EMC2 dash DASH ripple XRP bitcoingold BTG zcash ZEC eos EOS qtum QTUM syscoin SYS neo NEO monero XMR vertcoin VTC iota IOT powerledger POWR omisego OMG santiment SAN
How to Implement Maven TestNG Selenium Grid project
How to Implement Maven TestNG Selenium Grid project High level Steps: note: I will be adding detailed description for each steps below, 1. Install Eclipse Editior 2. In Eclipse, navigate to “Help >> Install New Software” then install Maven plugin. 3. Create a Maven project, which will have a pom.xml having the option to add all …
How to Implement Maven TestNG Selenium Grid project Read More »
How to reverse an array in java
How to reverse an array in java package arrays; import java.util.Arrays; public class ArrayReverse { public static void main(String[] args) { int abc[] = {2, 3, 4, 5, 6,7, 8, 9, 10}; System.out.println(“Before Reverse, Arrays are like this : “+Arrays.toString(abc)); int temp; int arrayloop = abc.length/2; for (int i = …
What is LinkedList and an example in Java?
What is LinkedList and an example in Java? LinkedList is a linear collections of data elements. // Declaring LinkedList LinkedList<String> abclinked = new LinkedList<String>(); abclinked.add(“a”); abclinked.add(“b”); abclinked.add(“c”); system.out.println(“the linked list is ” + abclinked ) …
What is Thanksgiving?
What is Thanksgiving? Thanksgiving is a national holiday of USA, Canada etc. In USA, it is celebrated on 4th Thursday of November. This day is to give thanks for the blessing of the harvest. Modern Thanksgiving has been changed a lot. Everyone are curious about the Thanksgiving deals 🙂 and it has been well celebrated …
What is DevOps?
What is DevOps? DevOps is the latest Development Methodology where Dev team and Operations team are collaborated for better productivity , Improving the time to market of the product releases etc. DevOps uses lots of tool like Git for Version controlling , Jenkins for Integrating multiple DevOps tools, helps on better communications between Developers, Testers, …
How to Install TestNG in Eclipse IDE for Selenium WebDriver automation testing
How to Install TestNG in Eclipse IDE for Selenium WebDriver automation testing In Eclipse, navigate to Help >> navigate to sub menu “Install New Software”, click on it. Add name as “TestNG” Add Location as “http://beust.com/eclipse/”, click ok select “TestNG” , click next (when TestNG ready to install) follow the steps and complete installation.
How to use JMeter for login authentication?
How to use JMeter for login authentication? Regular Expression Extractor is used to handle this situation. Following steps may be used, First find out the GET request where the authentication required & POST request that posts the credential to login The response from the GET request should have tokens which needs to be be extracted …
What is polymorphism in java with example
What is polymorphism in java with example polymorphism means one object can take multiple forms. lets explain this using a method poly() in java class. steps: create a package polymorphismPkg in eclipse create a class polymorphismClass in eclipse now write below code in the class polymorphismClass package polymorphismPkg; public class polymorphismClass { public static void main(String[] args) …
What is Inheritance in Java with example
What is Inheritance in Java with example One class in Java can get the methods and properties from other class – this helps reducing the coding efforts , increase code reusability and maintainability. e.g. public class classB extends classB { } in the above Java code, classB class gets the methods and properties from classA …
Top 5 sql interview questions and answers
Top 5 sql interview questions and answers What is DDL, DML, DCL, TCL in SQL ? DDL refers to Data Definition language. DDL is used to create/modify the structure of Database. e.g. CREATE, ALTER, DROP statement.. DML refers to Data Manipulation language. DML is used to retrieve, modify, delete, insert and update data in database. e.g. …
Top 5 Salesforce Interview questions
Top 5 Salesforce Interview questions 1. What is object in salesforce? Objects are database tables used to store specific data. There are two types of objects. 1. Standard objects 2. Custom objects. 2. What are different types of relationship in salesforce? There are two different types of relationship in salesforce. 1. Master detail relationship 2. …
Top 20 sql interview questions and answers
Top 20 sql interview questions and answers What is DDL, DML, DCL, TCL in SQL ? DDL refers to Data Definition language. DDL is used to create/modify the structure of Database. e.g. CREATE, ALTER, DROP statement.. DML refers to Data Manipulation language. DML is used to retrieve, modify, delete, insert and update data in database. e.g. …
How to send email at every build with Jenkins
How to send email at every build ? Jenkins default configuration setting allows to send email notification for build failure, someone breaks the build etc. To send email for every build Install Email-ext plugin Once it is installed, click on Configure System Then in “Jenkins Location” section & “Extended E-mail Notification” – enter your email …
Jenkins reset user password
Jenkins reset user password : First stop the Jenkins service if you are already running jenkins Go to the folder where jenkin’s config.xml file is stored (generally C:\jenkins\.jenkins\config.xml) Open config.xml file using notepad++ or any text editor Search for <useSecurity>true</useSecurity> and change that to <useSecurity>false</useSecurity>, Save the file. re-start Jenkins service (using Java -jar jenkins.war …
Summary of SQL
What are the SQL MAX() and MIN() Functions? The MAX() function returns the largest value in the selected column. The MIN() function returns the smallest value in the selected column. SELECT MAX(Weight) AS LargestWeight FROM CricketBats ; SELECT MIN(Weight) AS SmallestWeight FROM CricketBats ; What are the SQL AVG(), COUNT() and SUM() Functions The SQL …
How to hide the WhatsApp message previews
Solution: Go to Settings > Notifications > Show Preview, change the settings.
How to reference an old message in WhatsApp and respond
Solution: Hold down the message, then press the left arrow on Android/’reply’ button on iOS. Then type the message that you wanted to display as a response to the old message. This is helpful when multiple conversations are happening in a group chat and you want to respond to a particular message.
How to turn off whatsapp last seen
Solution: Go to the path Settings > Account > Privacy > Last Seen , and do the changes required..
How to restrict the view on profile photo and personal status in Whatsapp?
Solution: Go to Settings > Account > Privacy and press the right sub-menus for profile photo, status etc..
How to Use WhatsApp in a Web Browser?
Solution: 1) Go to web.whatsapp.com in a web browser on a computer. 2) Then, on your iOS/Android/Windows mobile phone, open WhatsApp and press the Options on top right corner side 3) then press WhatsApp Web from the options. 4) use iOS/Android/Windows mobile phone to scan the QR code shown on the browser on your computer.
How to locate important messages in Whatsapp easily?
Solution: WhatsApp selected messages can be starred. How to do: Hold down the message and select the star icon on top of whatsapp. Then You can see all your starred messages directly from your WhatsApp homescreen(View contact >> started message)
Whatsapp tricks & cheats
How to locate important messages in Whatsapp easily? Solution: WhatsApp selected messages can be starred. How to do: Hold down the message and select the star icon on top of whatsapp. Then You can see all your starred messages directly from your WhatsApp homescreen(View contact >> started message) How to Use WhatsApp in a Web …
How to use while loop in java
While loop in Java import java.util.Scanner; class WhileLoop { public static void main(String[] args) { int i; Scanner input = new Scanner(System.in); System.out.println(“Please input an integer value”); while ((i = input.nextInt()) != 0) { System.out.println(“You have entered ” + i); System.out.println(“Please input an integer value”); } System.out.println(“Gone out of loop”); } }
How to implement Multiplication program in java
How to implement Multiplication program in java: import java.util.Scanner; class TableForMultiplication { public static void main(String args[]) { int i, j; System.out.println(“Enter an integer to display it’s multiplication table…”); Scanner in = new Scanner(System.in); i = in.nextInt(); System.out.println(“Multiplication table of “+i+” is :-“); for ( j = 1 ; j <= 10 ; j++ ) System.out.println(i+”*”+j+” = “+(i*j)); …
What is AND, OR and NOT Operators in SQL
AND, OR, and NOT operators are combined with the WHERE clause to get the desired filtered results. e.g SELECT * FROM Users WHERE State =’illinois’ AND City=’Chicago’; e.g SELECT * FROM Users WHERE City=’Chicago’ OR City=’New York’; e.g SELECT * FROM Users WHERE NOT State =’Chicago’;
What is SQL WHERE Clause
SQL WHERE clause is used to filter records and its added as below SELECT States FROM Users where Usersgroup = ‘1’; Selenium Tutorial Karate framework Selenium features Selenium features – what are the main features of selenium. Selenium IDE How to Validate the XPATH is correct in Selenium automation How to take snapshot of browser …
Breaking while loop in Java
import java.util.Scanner; class TestingBreakWhileLoop { public static void main(String[] args) { int i; Scanner input = new Scanner(System.in); while (true) { System.out.println(“Input an integer for this test program”); i = input.nextInt(); if (i == 0) { break; } System.out.println(“You have entered … ” + i); } } }
What is SQL ORDER BY Keyword
The purpose of ORDER BY keyword is used to sort the results in descending or ascending order e.g SELECT * FROM Users ORDER BY State DESC; e.g SELECT * FROM Users ORDER BY State ASC; or SELECT * FROM Users ORDER BY State;
What is difference between select and select distinct
What is the difference between select and select distinct SELECT DISTINCT statement is used for returning only distinct (different) values from a column. SELECT statement is used for returning all the values in the table column. E.g SELECT States FROM Customers;E.g SELECT DISTINCT States FROM Customers; Summary of SQL – Please click here
String reverse using java script split method
Assume given string ‘str’ value is “welcome” function stringRev(str) { var splitString = str.split(“”);// Use the reverse() method to reverse the array var arrayReverse = splitString.reverse(); // equals to [“e”, “m”, “o”, “c”, “l”, “e”, “w”] // Use join() method to join the elements of the array into a string as below in comments var …
String reverse in java script using decrementing For-loop
Assume given string ‘str’ value is “welcome” function stringRev(str) { var stringOne = “”; for (var i = str.length – 1; i >= 0; i–) { stringOne = stringOne + str[i]; } return stringOne; // “emoclew” } stringRev(‘welcome’);
Differences between SQL and PL/SQL
PL/SQL is procedural language where s SQL is data oriented language. PL/SQL purpose is to create applications but SQL is data manipulator and reviewer PL/SQL executions works at block of code level while SQL execution is per statement at a time. PL/SQL servers for building, formatting and display application screens but SQL sources data for …
Defect priority and severity
Severity indicates the seriousness of the defect. Severity types are Critical, Major, Moderate, Minor, Cosmetic Priority indicates how quickly the defect needs to be fixed. Priority types are High, Medium, Low. Low Severity and Low Priority: A cosmetic error in a page which is not important to users. High Severity and High Priority: An error in …
Popular databases or filesystems that uses SQL
1. MySQL 2. Oracle 3. PostgreSQL 4. MS SQL Server 5. SQLite 6. Dbase 7. Hadoop 8. MaxDB 9. MariaDB 10. Openbase
What is Apex?
Apex is a programming language for salesforce (only) Object Oriented Program, in which the data types have to defined. Allows developers for flow execution in force.com platforms. Enables developers to add business logic to most system events including button clicks, related record updates and visualforce pages. Datatypes in Apex Primitives Apex primitives include the following …
What is Salesforce
Salesforce.com is an American cloud computing company. Salesforce offers Software as a Service (SaaS) platform which helps in Customer Relationship Management. It has a multi-tenant architecture and subscriptions. The following are the application clouds in Salesforce CRM. 1. Sales Cloud 2. Service Cloud 3. Marketing Cloud 4. Data cloud 5. App Cloud 6. Analytics Cloud …
How to change numbers to zero
How to change numbers to zero – refer below code: Dim i Dim j Dim output objStr= “1234567890” j = 0 For i = 1 to 9 output =output&replace(objStr,i,j) Next
How to find the string length and reverse the string
Dim strLength Dim objStr Dim objStrReverse objStr = Inputbox(“enter a long string”) strLength =len(objStr) print strLength For i = strLength to 1 step-1 objStrReverse=objStrReverse&mid(objStr,i,1) Next print objStrReverse
Quick summary of QTP
QTP Quick summary: Automation Frameworks Record and Playback.(Records application flow using QTP and playback) Data driven. (Data controls the automation flow through a spreadsheet/datatable) Keyword driven. (Functions are mapped to Keywords) Hybrid approach (Combination of Keyword and data driven) Business process testing(BPT) Functional Decomposition Types of QTP Licenses Seat Concurrent How to record/playback Open QTP/UFT …
Web server vs Application server vs Database server
Web server vs Application server vs Database server Web server serves a web content (HTML and static content) over the HTTP protocol. Application server is a container on which one can build and expose business logic and processes to client applications through various protocols like HTTP. Some cases it will have internal web server. Application …
Web server vs Application server vs Database server Read More »
What are the new features in Python 3.9
Python 3.9 features: 1. High performance andflexibility – PEG basedparser (replaced currentLL(1) ) has high performanceand stability. 2. New 2 operatorsmerge “|”, and “|=” updateare introduced forDictionary operations 3. new two string functionsadded to string object for easy coding experience.they are ‘removeprefix(string)’and removesuffix(string) as below’prefix-n’. removeprefix(‘prefix-‘)’n-suffix’. removesuffix(‘-suffix’)both code provides ‘n’ as result 4. Type hinting …
What is single and double slash for xpath
#shortsWhat is Single slash ‘/’in Xpath in selenium: Single slash ‘/’ is usedwhen absolute Xpathis considered for Elementidentification for SeleniumWebDriver What is Double slash ‘//’in Xpath in selenium: Double slash ‘//’ is usedwhen relative Xpathis considered for Elementidentification for SeleniumWebDriver Relative Xpath ‘//’is better Elementidentification strategy
TestNG Parameterization – what are different approaches
TestNG Parameterization:Approach 1: feed inputparameters via TestNGand receive using@Parameters annotationat the target methodApproach 2: use Dataproviderwhen complex parameterslike data from database, xls,property file, arraylist etc
Java access modifiers:default, public, privateand protected
Java access modifiers:default, public, privateand protected. 1. default access modifier:here variables and methodsare accessible with in samepakage and not in other pakages 2. public access modifier:variables and methods are acce-ssible in same & other pakages 3. private access modifier:does not allow accessoutside to class or file 4. protected access modifier:here same pakage accessis allowed and …
Java access modifiers:default, public, privateand protected Read More »
driver.navigate() commands in Selenium
//Refresh Browser Page driver.navigate().refresh() //Navigate forward in the browser Historydriver.navigate().forward() //Navigate backward in the browser Historydriver.navigate().back()
What is response in Karate Framework?
‘response’is a specialvariable in KarateFramework After everyHTTP callthis specialvariable is updatedwith reponse bodyi. e XML or JSON
Docker image commands
//Build an image fromDockerfile and tag it docker build -t appimage:1.1 //List all images docker image ls //Delete an image docker image rm appimage:1.1 // to get rootprivilege use’sudo’ before above commands e. g. sudo docker image ls #shorts
Git commands git init, git log, git clone commands and syntax
For git commands git init, git log, git clone commands and syntax, please find youtube link below:
how to add your local git branch changes to remote branch
how to add your local git branch changes to remote branch // follow 3 steps 1. git add . 2. git commit -m “my commit” 3. git push stpe 1 add yourworking directoryfile to index area step 2. saves yourchanges to local repo step 3. pushesyour changes to remote branch
Most useful git commands
Most useful git commands are git init, git add ., git commit, git push, git pull, git feth 1. git init// to start local repo 2. git add .//to add local changesto staging area 3. git commit -m “change1″// to collect stagedchanges 4. git push// to push localcommittedchanges toremote branch 5. git fetch// will fetchremote …