Tuesday, 24 December 2019
Types of automation Testing
Types of Automation Testing
- Code drive testing
- UI testing
- Integration Testing
- API level testing
Automation Testing
What is Automation Testing :-
Automation testing is used to simplify testing and involves steps to create scripts for testing. One of the advantage of automation testing is re-executing same test case in different environment so it saves time.
There are many tools available to prepare automation test cases some of them are
Selenium
IBM Rational
Test Case Studio
Automation testing is used to simplify testing and involves steps to create scripts for testing. One of the advantage of automation testing is re-executing same test case in different environment so it saves time.
There are many tools available to prepare automation test cases some of them are
Selenium
IBM Rational
Test Case Studio
What are requirements companies look in Software Testing Engineer
Software engineer working in Testing (Automation / Manual) should know
1. System Analysis
2. Software Quality Assurance
3. Complete test life Cycle
4. Different testing methodology.
5. Experience in development of different test automation frameworks and tools.
6. Experience in forming different test cases.
7. Coordinating with BA's and Developers.
8. Experience with bug reporting tools.
9. Knowledge of best practices on automation.
9. Knowledge of best practices on automation.
Thursday, 19 December 2019
Javascript for pushing only unique values in array
JavaScript to give error on pushing a duplicate value in an array
var fileArray= [];
var file1=attachment[0].files[0].val();
//somewhere else
function insertUniqueAttachment(file1){
if(!fileArray.includes(file1)){
fileArray.push(val)
}else{
alert("can't contain duplicate value");
}
}
if(!fileArray.includes(file1)){
fileArray.push(val)
}else{
alert("can't contain duplicate value");
}
}
Tips for writing a good blog
Tips for writing a good blog
1. USE SEO tips (Use Search terms for title, hyperlinks etc.,)
2. Use Google keywords people often search.
3. Be consistent
4. Check messages and emails on your blogs.
5. Make content sharable.
6. Improve your content repeatedly.
7. Be clear about your each blog.
8. Suggest user's related topic
9. Use images, pdf's presentation links.
10. Make content clickable.
11. Know your audience before starting any blog post or any blog.
12. Show your content to friends/relatives etc before posting if you have fear.
13. See other blogs of same category and write down 5 things which you are doing and others are not.
14. Go to google keyword planner to see no. of hits and suggestions for particular keyword.
15. Ask people for comments on your blog.
16. Link different set of information for your viewers.
17. Embed your blog with your website, quora, social networking sites also post your answers on sites like linkedin etc.
Integrating sql developer with Microsoft sql server
Steps to setup sql developer
- Download jtds 1.3.1 driver for sql server and sybase
- Go to tools ->preference->db->3rd party driver and import this jar jtds 1.3.1.
- Click ok
- Restart sql developer now you will see a connection tab for microsoft sql developer and connect to your sql server db.
Wednesday, 18 December 2019
Javascript to change Label dynamically
<!DOCTYPE html>
<html>
<script>
function Test(){
var x=document.getElementById("Test");
if((x.innerHTML).includes("*")){
x.innerHTML=x.innerHTML.slice(0, -1);
}
else{
x.innerHTML=x.innerHTML+"*";
}
}
</script>
<body>
<label id="Test" for="new">My First JavaScript*</label>
<button type="button"
onclick="Test()" id="new" name="new">New
</button>
<p id="demo"></p>
</body>
</html>
<html>
<script>
function Test(){
var x=document.getElementById("Test");
if((x.innerHTML).includes("*")){
x.innerHTML=x.innerHTML.slice(0, -1);
}
else{
x.innerHTML=x.innerHTML+"*";
}
}
</script>
<body>
<label id="Test" for="new">My First JavaScript*</label>
<button type="button"
onclick="Test()" id="new" name="new">New
</button>
<p id="demo"></p>
</body>
</html>
Tuesday, 17 December 2019
Sunday, 15 December 2019
Steps to backup Sql server database
Steps for backup and restore sql server db
- Ensure application server is stopped.
- Login to Dev Server and launch SQL Server Management Studio
- Expand the Databases node in Object Explorer.
- Right-click on the database, hover over Tasks, and select Back up
Select the path and click ok to begin backup
restore
- Ensure application server is stopped
- Login to server and launch SQL studio.
- Right click on database and click on restore.
- Select the .bak file to restore
Ensure name of db is same and version of your server is similar before restore starts.
List of Companies in India working on Maximo
List of Companies in India working on Maximo
- IBM
- Wipro
- TCS
- Infosys
- Accenture
- PWC
- Capegimini
- Tech Mahindra
- HCL
- Mphasis
- L&T
- ABS
- Ontracks
- Interloc
- Cybage
- Ford
- ValueD
- Mindtree
- Volkswagon
- Cognizant
- Cisco
- GE
- Atos
- Syntel
- Adobe
- Schlumberger
Etc.
These are major companies although their are others like
1. Zenfocus
2. Cyberjaya
3. Envision
How can I delete or post multiple records in rest api
You can either do a for loop or creat a json structure and other system will treat it accordingly.
JavaScript functional expresion
Functional expresion is function without name ex
Var squareIt=Function(a,b)
{
Return a*b
}
Var c=squareIt(4,5)
This will only called when we invoke it.
If we need immediate invocation then use
Var c=(function (){
Var a=4;
Var b=5;
Return b*c;
}())
You may ask why we use when result is 20 only whel you can have a global value in place of a and b and can use it.
Thursday, 12 December 2019
Javascript One button is calling another / Javascript One button is calling another submit
Javascript One button is calling another submit
JavaScript event propogation
Inorder to resolve this issue you should be event.stoppropogation and event.preventdefault.
This issue occurs when in a form we have one submit and multiple button so default behaviour cause events propogation.
JavaScript event propogation
Inorder to resolve this issue you should be event.stoppropogation and event.preventdefault.
This issue occurs when in a form we have one submit and multiple button so default behaviour cause events propogation.
Tuesday, 10 December 2019
Jquery to make field required based on other Field
<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("em").addClass("selected");
$("#myid").addClass("highlight");
$('#text1').change(function() {
var x = document.getElementById("label2");
if (x.innerHTML === "Last Name") {
x.innerHTML = "Last Name*";
} else {
x.innerHTML = "Last Name";
}
if ($('#text2').attr('required')) {
$('#text2').removeAttr('required');
}
else {
$('#text2').attr('required','required');
}
});
});
</script>
<style>
.selected {
color:red;
}
.highlight {
background:yellow;
}
</style>
</head>
<body>
<form>
<label for="text1" id="label1"> first name</label>
<p><input type="textbox" id="text1"/> Check Me to make the Text Box a Required Field</p>
<b>
</b>
<label for="tex2" id="label2">Last Name</label>
<input type="text" id="text2" />
<input type="submit" value="Submit" />
</form>
</body>
</html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$("em").addClass("selected");
$("#myid").addClass("highlight");
$('#text1').change(function() {
var x = document.getElementById("label2");
if (x.innerHTML === "Last Name") {
x.innerHTML = "Last Name*";
} else {
x.innerHTML = "Last Name";
}
if ($('#text2').attr('required')) {
$('#text2').removeAttr('required');
}
else {
$('#text2').attr('required','required');
}
});
});
</script>
<style>
.selected {
color:red;
}
.highlight {
background:yellow;
}
</style>
</head>
<body>
<form>
<label for="text1" id="label1"> first name</label>
<p><input type="textbox" id="text1"/> Check Me to make the Text Box a Required Field</p>
<b>
</b>
<label for="tex2" id="label2">Last Name</label>
<input type="text" id="text2" />
<input type="submit" value="Submit" />
</form>
</body>
</html>
Subscribe to:
Comments (Atom)