Thursday, February 14, 2008

Bush, House Democrats Face Off on Wiretapping Bill

From NPR: Now, it is up to House Democrats to stop this craziness.

FISA - Dodd Amendment

From senate.gov as pointed out by zulchzulu:

These traitors voted 'No' on Dodd's amendment to strike the provisions providing immunity from civil liability to electronic communication service providers for certain assistance provided to the Government.

NAYs ---67
Alexander (R-TN)
Allard (R-CO)
Barrasso (R-WY)
Bayh (D-IN)
Bennett (R-UT)
Bond (R-MO)
Brownback (R-KS)
Bunning (R-KY)
Burr (R-NC)
Carper (D-DE)
Chambliss (R-GA)
Coburn (R-OK)
Cochran (R-MS)
Coleman (R-MN)
Collins (R-ME)
Conrad (D-ND)
Corker (R-TN)
Cornyn (R-TX)
Craig (R-ID)
Crapo (R-ID)
DeMint (R-SC)
Dole (R-NC)
Domenici (R-NM)
Ensign (R-NV)
Enzi (R-WY)
Feinstein (D-CA)
Grassley (R-IA)
Gregg (R-NH)
Hagel (R-NE)
Hatch (R-UT)
Hutchison (R-TX)
Inhofe (R-OK)
Inouye (D-HI)
Isakson (R-GA)
Johnson (D-SD)
Kohl (D-WI)
Kyl (R-AZ)
Landrieu (D-LA)
Lieberman (ID-CT)
Lincoln (D-AR)
Lugar (R-IN)
Martinez (R-FL)
McCain (R-AZ) <- Double freak!
McCaskill (D-MO)
McConnell (R-KY)
Mikulski (D-MD)
Murkowski (R-AK)
Nelson (D-FL)
Nelson (D-NE)
Pryor (D-AR)
Roberts (R-KS)
Rockefeller (D-WV)
Salazar (D-CO)
Sessions (R-AL)
Shelby (R-AL)
Smith (R-OR)
Snowe (R-ME)
Specter (R-PA)
Stabenow (D-MI)
Stevens (R-AK)
Sununu (R-NH)
Thune (R-SD)
Vitter (R-LA)
Voinovich (R-OH)
Warner (R-VA)
Webb (D-VA)
Wicker (R-MS)

Senate Passes FISA Bill with Immunity for Telecoms

From NPR and senate.gov:

Blame these traitors when corporation dares to fuck with people's right again.
YEAs ---68
Alexander (R-TN)
Allard (R-CO)
Barrasso (R-WY)
Baucus (D-MT)
Bayh (D-IN)
Bennett (R-UT)
Bond (R-MO)
Brownback (R-KS)
Bunning (R-KY)
Burr (R-NC)
Carper (D-DE)
Casey (D-PA)
Chambliss (R-GA)
Coburn (R-OK)
Cochran (R-MS)
Coleman (R-MN)
Collins (R-ME)
Conrad (D-ND)
Corker (R-TN)
Cornyn (R-TX)
Craig (R-ID)
Crapo (R-ID)
DeMint (R-SC)
Dole (R-NC)
Domenici (R-NM)
Ensign (R-NV)
Enzi (R-WY)
Grassley (R-IA)
Gregg (R-NH)
Hagel (R-NE)
Hatch (R-UT)
Hutchison (R-TX)
Inhofe (R-OK)
Inouye (D-HI)
Isakson (R-GA)
Johnson (D-SD)
Kohl (D-WI)
Kyl (R-AZ)
Landrieu (D-LA)
Lieberman (ID-CT)
Lincoln (D-AR)
Lugar (R-IN)
Martinez (R-FL)
McCain (R-AZ) <- I can't believe he did this.
McCaskill (D-MO)
McConnell (R-KY)
Mikulski (D-MD)
Murkowski (R-AK)
Nelson (D-FL)
Nelson (D-NE)
Pryor (D-AR)
Roberts (R-KS)
Rockefeller (D-WV)
Salazar (D-CO)
Sessions (R-AL)
Shelby (R-AL)
Smith (R-OR)
Snowe (R-ME)
Specter (R-PA)
Stevens (R-AK)
Sununu (R-NH)
Thune (R-SD)
Vitter (R-LA)
Voinovich (R-OH)
Warner (R-VA)
Webb (D-VA)
Whitehouse (D-RI)
Wicker (R-MS)

Tuesday, February 12, 2008

Super Sensitive RFT

Something is really wrong with RFT, it is easily broken. I spend the whole day figuring out what is wrong with SGADSH-SPQINT04 without knowing what's wrong.

I really need IBM's help now.

Monday, February 11, 2008

Official Reserves

From The Economist:
China is by some distance the world's largest holder of foreign-exchange 
reserves. Its currency hoard passed the $1.5 trillion mark at the end
of last year, little more than a year after it reached $1 trillion.

Thursday, February 7, 2008

AWS

Just signed up as AWS dev, let the hacking commence.

Thank You God... None Of Your Moronic Administrator Is Our Law Maker

From NPR: British Archbishop: Law Must Accommodate Muslims.

We are having shit loads of problem with a law released several years ago (PATRIOT), yet some one feels alright with 600 years old law.

Perl Will Be Y2038 Safe

From use Perl: the code is tested and will be deployed to 5.10.

BOO!

Fished this out from Engadget. Love the subversive value of the picture accompanying the article.

Wednesday, February 6, 2008

Handling Objects

Starts writing code to handle the objects properly:
  1. Browser: invoke(URL). Handles IE's security alerts window.
  2. Editbox: set(data). Set the value of data to input, textarea or password object.
  3. Button: press. Handles IE's security alerts window.
Enough to handle login.

Tuesday, February 5, 2008

Republican National Delegates

According to AP:

NATIONAL DELEGATE TOTALS

Needed to nominate:1191
Total delegate votes:2380



Pledged
Candidate Total*
To Date Feb 5
McCain 504
495 402
Romney 200
184 107
Huckabee 142
139 99
Paul 9
9 5
Uncommitt. 23
1 0

*Includes pledged delegates plus party and elected officials.

Chinese Leapfrog

From The Economist:

Woke Up Late Today

Suffering from reading lots of material about dynamic class loading and interfaces, so instead of taking 682, I am taking 600 - looks like everyone is in the late mood today since the train arrived late at Tustin too.

[write what the boyos have done]

Gluing the KWDT class and the code that Freeman and Latisha have written ... and in the end I decided not to use dynamic class loading.

This is the basic of KWDT [link to the implementation of kwdt].

In nutshell, to handle pressing of button object.
String AUT = "app";
String objtype = "button";
...
Class c = Class.forName("com.fnis.application."+AUT+".object."+objtype);
button uiObj = (button) c.newInstance("login");
uiObj.press();
But, a problem arises since the code needs to handle the object based on the type of action:
String action = "validateenabled";
...
if (action.eq("press")) {
uiObj.press();
}
else if (action.eq("validateenabled")) {
uiObj.validateenabled();
}
else {
// action not handled yet
throw ...
}
It is apparent that the code needs to have a lot of "if .. else ..." statements to cover each action, and to minimize the branch statement, I settled for Reflection. It cuts the "if ... else ..." statements down to nothing.
import java.lang.reflect.*;

String AUT = "app";
String objtype = "button";
String action = "validateenabled";

Class c = Class.forName("lib.applications."+AUT+".object."+objtype.toLowerCase());
Constructor ct = c.getConstructor();

Object arglist[] = new Object[6];
arglist[0] = window;
arglist[1] = objName;
arglist[2] = data;
arglist[3] = expectedResult;
arglist[4] = timeout;

Object obj = ct.newInstance(arglist);
Method m =c.getDeclaredMethod(action);
Hopefully, using Reflection won't kill the performance of the test code.

Monday, February 4, 2008

MainScript

Writing MainScript, the script that will control it all (KWDT or vanilla flavoured).

Start with consolidating the properties of test into properties file, and branch the execution on KWDT or else (...).

Update the KWDT class to accept the test properties for further report.

Start dabbling in the object handling class - thinking about using class dynamic loading, based on the type of application under test.

Friday, February 1, 2008

Functional Tester Mess

Today, I start tackling the project of cleaning up the mess (RFT scripts). Apparently the spring arrives early this year.

This project has been going on and off for more than a year now. It began when the company bought unlimited RFT license for us to use, but the implementation was limited to little projects since we had legacy scripts (WinRunner) in production.

From the technical stand point, I would like to start porting the legacy scripts to RFT ASAP since: RFT is architecturally superior. Since it is basically Java using RFT classes, RFT offers extensibility by importing 3rd party classes/libraries. It is painful to import libraries in WinRunner, instead of writing dll, I opted to use Perl.

But there were several problems:
  1. RFT 6 wasn't very stable - yet.
  2. I didn't have time.
With the downturn of real estate business, it was prudent for us to terminate the WinRunner support, and we have been pretty lucky with the subsequent WinRunner releases since we are flying solo without ground support so far. To eliminate the possibility of us needing WinRunner support, it is time for to port the WinRunner script to RFT.

Started looking for what I have been missing and apparently what I have written one year ago is looking back at me. omg!