About Me

My photo
London, United Kingdom
SOA tester in London

Thursday, November 17, 2011

soapui:Get Endpoint WSDL URL from interface

for( inter in testRunner.testCase.testSuite.project.getInterfaces() ) {
log.info inter.getValue().getDefinition()
}

Friday, October 14, 2011

Apache Chainsaw and log4j log file monitor

I started using Apache Chainsaw and its really cool !! ..
You just need 10 mins to make a setup and you are ready to watch your log files ..

Try the latest developer snapshot of Chainsaw, available here: http://people.apache.org/~sdeboy

There is a tutorial available from the help menu which describes basic functionality. Any events displayed in a table (even when filters are applied) can be saved off in xml format via the file-save menu. The tutorial describes the expression syntax you use to filter, colorize or search for events. By the way, the 'marker' column is editable (and any notes entered are saved off when you save the events).

Right-click in the table and go through the menus to discover more of what Chainsaw can do (or read the release notes available from the help menu).





Thursday, September 29, 2011

SOAPUI : running from Java program

import com.eviware.soapui.SoapUIProTestCaseRunner;
import com.eviware.soapui.support.*;
import com.eviware.soapui.model.*;
import com.eviware.soapui.impl.wsdl.*;
import com.eviware.soapui.*;

public class runsoapui {

public static void main(String[] args) {
SoapUIProTestCaseRunner myrunner = new com.eviware.soapui.SoapUIProTestCaseRunner();
myrunner.setProjectFile("C:/Bskyb/soapui-project-files/PMAPI-WEB-soapui-project.xml");
myrunner.setTestSuite("webtestsuite");
myrunner.setTestCase("webtestcase");
try {
myrunner.run();
}
catch(Exception ex)
{
System.out.println ("I'm here with Exception " + ex.getMessage());
System.exit(1);
}
}
}

Wednesday, September 28, 2011

Perl : Array of Hashs

#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;

open FILE ,"temp" or die("can not open temp $!");

my $line ;
my ($part1,$part2);
my @AoH=();

while($line = ) {
chomp($line);
my %hasha=();
($part1,$part2) = split(/#/,$line);

my @part1array=split(/\s/,$part1);

%hasha=split(/[=;]/, $part2);

my $datetime="$part1array[1] $part1array[2]";
my $threadname=$part1array[6];

$hasha{"datetime"}=$datetime;
$hasha{"threadname"}=$threadname;

push @AoH, \%hasha;

}
close(FILE);

my $numberofhashes=scalar(@AoH);
print $numberofhashes."\n";
my $hr2=\@AoH;
print Dumper $hr2;

Friday, September 23, 2011

Soapui to Jquery

import com.eviware.soapui.impl.wsdl.teststeps.*;
import com.eviware.soapui.support.XmlHolder;
import com.eviware.soapui.SoapUI
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner
import org.apache.log4j.Logger
import com.eviware.soapui.support.xml.*;


/* Clear log Start*/
// Karthi don't know how to do this !! :)
/* Clear log Done */


def operations = [];
def services = [];
def RequestA = [];
def ResponseA = [];

def xmlUtils = new com.eviware.soapui.support.xml.XmlUtils();

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context );
def responseHolder = groovyUtils.getXmlHolder("getCommunication#Response");
responseHolder.namespaces["ns1"] ="http://www.apache.org/ode/pmapi"
responseHolder.namespaces["ns2"]="http://www.apache.org/ode/pmapi/types/2006/08/02/"
def nodeCount = responseHolder.getDomNodes("//ns1:getCommunicationResponse[1]/getCommunicationResponse[1]/ns2:restoreInstance[1]/*").length
//log.info nodeCount

for (def nodeIndex = 1; nodeIndex <= nodeCount; nodeIndex++) {
def node = responseHolder.getDomNodes("//ns2:exchange[$nodeIndex]/ns2:operation[1]")
def node2 = responseHolder.getDomNodes("//ns2:exchange[$nodeIndex]/ns2:service")
node.each {
operations << it.firstChild.nodeValue ;
//log.info it.firstChild.nodeValue
}
node2.each {
services << it.firstChild.nodeValue ;
//log.info it.firstChild.nodeValue
}
}

new File('C:/Users/mahadevk/Downloads/jquery-ui-1.8.16.custom/myhtml.html').withWriter { file ->
new File('C:/Bskyb/HTML-learn/temp.html').eachLine { line ->
file.writeLine(line)
}
}
f = new File('C:/Users/mahadevk/Downloads/jquery-ui-1.8.16.custom/myhtml.html')
//g = new file('C:/Users/mahadevk/Downloads/jquery-ui-1.8.16.custom/new.html');

operations.eachWithIndex{ it, i ->
def j = i+1;
def request = responseHolder.getDomNodes("//ns2:exchange[$j]/ns2:in//*");
def op =it
def ser = services[i];
f.append("

$op : $ser

");
f.append("Request for the operation : $it" );
def Request= request.toString();
def prettyPrintRequest = xmlUtils.prettyPrintXml(Request);
f.append("Inside tab");
f.append("

");

f.append("");
f.append("

");
f.append("

");
f.append("

");

def response = responseHolder.getDomNodes("//ns2:exchange[$j]/(ns2:out|ns2:fault)//*");
f.append("Response for the operation : $it")
def Response= response.toString();
def prettyPrintResponse = xmlUtils.prettyPrintXml(Response);
//log.info prettyPrintResponse;
f.append("");
f.append("

");
f.append("
");
}
f.append("
");

Friday, October 22, 2010

Data..Data..Data...and its more than "just" Data : Arcturus

We often speak of data as if it is the ends rather than the means. But the raw data often isn’t much help. We need intelligence, by which I mean insights derived from the data source. Or sources. To make data usable, we need to make sense of it. Which means sorting it, visualizing it, comparing it to predictive or historical models, and – increasingly – recombining it with other data.

Arcturus
Arcturus mines web traffic – as well as some third party data sources like Delicious and Twitter, but more on that in a bit – for insight, which we capture and will sell to our clients. Who can then turn around and use this quantitative insight to cater better to what developers actually want. Neat, huh?

Friday, October 08, 2010

ready – fire – aim


I always think "Failing to plan is planning to fail". But after several too much planning, I felt like it is also bad to do over-planning.

Analysis paralysis
- I think I do have this syndrome.


Planning is just as important and necessary as taking action, but moderating the two is essential for getting success in your life. Because all your opportunities and moments will NOT wait for you(r) (over planning).

If you want to lose weight for example, the best books and blogs on healthy living, dieting, and losing weight won’t help a bit if you sit reading them instead of exercising. Use the blogs to help inspire, motivate and encourage when you need it. Your planning must have a transition into action – and you need to know when planning isn’t really the answer to your problems.


Most of the time, we (I) sit and think without ever starting with ways to take action.

When there’s too many choices sometimes you can just shut down. Over thinking your problems makes you get too far ahead of yourself. You think only of the big picture, not how to get there.

Just decide "What’s the worst that can happen?"

Learning as you go so it means you have taken action and that you’re closer to your goals than when you were stuck planning.Remember that you can always improve, set a deadline for your work, and after that move on."I hear and I forget. I see and I remember. I do and I understand" - So apply your thinking and NOT just acquire it.

Every successful person has the ability to know when to stop collecting information and start taking action.

Wednesday, September 22, 2010

soapUI tips

I thought I will start compiling what ever am doing in SoapUI through series of several soapui posts. It may not be well aligned.. manage it.

How to create UI dialog ?

String name = UISupport.getDialogs().prompt("What is your name?", "Name prompt");

How to do log info ?
log.warn ("Am giving you warning");
log.info ("Am giving you info");
log.error("Am giving you error");

Friday, August 27, 2010

Thoughts for Good Living !!

Let me first admit
I copied this from My Dr friend Bruno !

Health:
1. Drink plenty of water.
2. Eat breakfast like a king, lunch like a prince and dinner like a beggar.
3. Eat more foods that grow on trees and plants and eat less food that is manufactured in plants...
4. Live with the 3 E's -- Energy, Enthusiasm and Empathy.
5. Make time to pray.
6. Play more games.
7. Read more books than you did in 2009.
8. Sit in silence for at least 10 minutes each day.
9. Sleep for 7 hours.
10. Take a 10-30 minutes walk daily. And while you walk, smile.

Personality:
11. Don't compare your life to others. You have no idea what their journey is all about.
12 Don't have negative thoughts or things you cannot control. Instead invest your energy in the positive present moment.
13. Don't over do. Keep your limits.
14. Don't take yourself so seriously. No one else does.
15. Don't waste your precious energy on gossip.
16. Dream more while you are awake..
17. Envy is a waste of time. You already have all you need.
18. Forget issues of the past. Don't remind your partner with His/her mistakes of the past. That will ruin your present happiness.
19. Life is too short to waste time hating anyone. Don't hate others.
20. Make peace with your past so it won't spoil the present.
21. No one is in charge of your happiness except you.
22. Realize that life is a school and you are here to learn. Problems are simply part of the curriculum that appear and fade away like algebra class but the lessons you learn will last a lifetime.
23. Smile and laugh more.
24. You don't have to win every argument. Agree to disagree....

Society:
25. Call your family often.
26. Each day give something good to others.
27. Forgive everyone for everything.
28. Spend time w/ people over the age of 70 & under the age of 6.
29.. Try to make at least three people smile each day.
30. What other people think of you is none of your business.
31. Your job won't take care of you when you are sick. Your friends will. Stay in touch.

Life:
32. Do the right thing!
33. Get rid of anything that isn't useful, beautiful or joyful.
34. GOD heals everything.
35. However good or bad a situation is, it will change..
36. No matter how you feel, get up, dress up and show up..
37. The best is yet to come.
38. When you awake alive in the morning, thank GOD for it.
39. Your Inner most is always happy. So, be happy.

Thursday, August 12, 2010

Measurement's in Software Project

Most of the times in my job, when am asked about status, I always wonder what do they do with 'just' numbers ?

Subjectivity of measurement is the more common discussion among engineers and testers, but in practice, this is often much easier to manage than the challenges of construct validity and side-effects.

Measurement can be useful if you understand:

* what you are trying to measure (the attribute being measured)

* why you are trying to measure it

* how your measurement relates back to the attribute you are trying to measure (construct validity)

* how the act of measurement and the interpretations of the measurements will affect the measured attribute and the other behaviors in the organization being measured (side effects of measurement), and

* how reliable the measurement is

then you might do more good than harm by using the measurement.

Question: How often do you see these questions discussed in discussions of measurement?

Monday, January 12, 2009

2009 Tirumangalam By-election result - DMK won

The result for the Thirumangalam by-election, which was held on January 9, was declared on Monday - today - Jan12th.

DMK's Latha Athiyaman won the seat by 39,000 votes

Saturday, September 13, 2008

Urgent job requirement - USA !

Requirement:
-----------
A company I know have an opening for Java J2EE candidates with valid stamped H1 visa. The candidate need to work in India for 3 - 6 months. Then they should come to US to the client location.

Please revert if 
1. You are interested/you know somebody in need.
2. The candidate is willing to transfer H1.


Detailed requirement:
--------------------
There are two positions.We need solid Front end developers and Back end developers. Detailed job description given below.
Any exp above 5/6 yrs will be appreciated.  
Front End Developers   
1.      Need to know HTML / CSS 
2.      Need to have knowledge in OO JavaScript 
3.      Worked on any JavaScript Framework like DOJO, YUI, extjs, prototype etc. 
4.      Knowledge of AJAX is must 
5.      Should have J2EE Knowledge in MVC Framework 
6.      Spring MVC is Added Advantage 
7.      Knowing Flex is Added Advantage 
Server Side / Backend Developers 
Need to know HTML / CSS 
Knowledge of AJAX is Added Advantage 
Spring Knowledge is Needed 
Hibernate Knowledge is  Needed 
Spring MVC is added Advantage 
Onsite : Minimum 5 years experience 
Offshore: Minimum 3 years experience 

Thursday, May 15, 2008

தமிழில் எழுதும் போது கஷ்டம் வந்தால்

ந் -w
வு -vu

மேலும் தெரிந்து கொள்ள :http://www.ukindia.com/zip/ztm1.htm

Tuesday, April 03, 2007

Rajni - Sivaji - The BOSS - Music Review

First of all I would like to tell you all that I'm also BIG fan of Rajni.


I heard the album for more than 10 times.

Here is my fav list.

1) Athiradee -- I think some tracks from "new" movie as well

2)Vaaji Vaaji -- Hariharan, Madhushree , Chorus -- I didnt like Gal voice here.. This song like "Indiyan" song "Telephone mani " pol

3)Balleilakka - Kaaveri Aarum - I liked only Chorus voice very much .. First part .. Really too good. Balleilakka means what ? ..

4) Sahara Pookal - Vijay Yesudas,Gomathi Sree,Chorus -- Here .. the tiruvembavai reminded me something similar to "BABA" one song..

5) Sahana Charal -- Udit Narayanan , Chinmayi -- Should have opted for some tamil singer and my fav. singer -- Shreya goshal here.

6) Oru Koodai Sunlight - I think something similar to "Remo" song in anniyan these people might have tried for this .. Lets wait and see , until this will be last in my list.

Tuesday, November 14, 2006

Sun Opens Java

For the past 11 years, Java technology has enabled developers to Write Once, Run Anywhere. Sun's commitment to compatibility and choice has made Java the most widely deployed application platform. Java technology is currently used on more than 4 billion devices worldwide, and the Java ME platform ships on more than eight of every 10 mobile handsets.

Sun believes Java technology has reached the right level of maturity, adoption, and innovation—with widespread use across enterprises and devices—to move into the next stage of its evolution. In the largest single contribution under the GNU GPL, Sun is releasing all of its key Java implementations under this widely respected free-software license:

Open-Source Java SE:
Today Sun is releasing the source code for the Java HotSpot virtual machine, the Java programming language compiler (javac), and JavaHelp online help software. Release of a fully buildable Java SE Development Kit (JDK) based nearly entirely on open-source code is expected in the first half of 2007.

Open-Source Java ME:
Sun is first releasing the source code for Sun's Java ME Feature Phone implementation based on Connected Limited Device Configuration (CLDC), which currently enables rich mobile data services in more than 1.5 billion handsets, and the source code for the Java ME testing and compatibility kit (TCK) framework. Later this year, Sun will release additional source code for the Advanced Operating System Phone implementation for based on the Connected Device Configuration (CDC) specification and the framework for the Java Device Test Suite.

New Developer Communities: Tapping its experience in building dynamic and transparent open-source communities, Sun is launching the OpenJDK Community and the Mobile & Embedded Community to support developer participation in evolving the open-source JDK and open-source Java ME implementations respectively.

For more news visit :http://www.sun.com/2006-1113/feature/story.jsp