Thursday, September 23, 2010

Can you create Apex Classes through Salesforce APIs?

What do you think, Can we use Salesforce "Web Service API" or "Meta data API" to create Apex Classes?

Please check this API carefully. It is not possible to do this though Apex classes and triggers have the Create and Update field properties set to true.

Web Service API for Apex Classes says:
Although Apex classes and triggers have the Create and Update field properties set to true, a runtime exception occurs if you try to create or update them using the API. Therefore, use the Force.com Migration Tool, the Salesforce.com user interface, or the Force.com IDE to create or update Apex classes or triggers.

Meta data API for Apex Classes says:
This metadata type is not supported by the create(), delete(), and update() calls.

Thursday, August 6, 2009

To be a Professional Software Tester,QA ...

Follow up the certifications available for Quality Assurance and Software Testing professionals.

1. Certified Software Tester (CSTE) and Certified Software Quality Analyst (CSQA) certification
s

www.softwarecertifications.org
www.qaiworldwide.org

CSTE - It is intended to establish standards for initial qualification and provide direction for the testing function through an aggressive educational program. Acquiring the designation of Certified Software Tester (CSTE) indicates a professional level of competence in the principles and practices of quality control in the IT profession. CSTEs become members of a recognized professional group and receive recognition of their competence by business and professional associates, potentially more rapid career advancement, and greater acceptance in the role as advisor to management.

CSQA - It is a widely recognized certification in the software industry now. As a CSQA certified professional, the QA executives will be able to put the QA principles into practice in the right manner at the right time and hence will be able to play a huge role in building the organizations. Acquiring the designation of Certified Software Quality Analyst (CSQA) indicates a professional level of competence in the principles and practices of quality assurance in the IT profession. CSQAs become members of a recognized professional group and receive recognition of their competence by business and professional associates, potentially more rapid career advancement, and greater acceptance in the role as advisor to management.

2. International Software Testing Qualifications Board (ISTQB) certification

www.istqb.org

Professional testing of software has become an increasingly important task, which requires a profound knowledge of testing techniques. The International Software Testing Qualifications Board (ISTQB) has developed a universally accepted, international qualification scheme, aimed at software and system testing professionals, and has created the Syllabi and Tests for the Certified Tester. The ISTQB certification has become an internationally recognized.

The contents of each syllabus are taught as courses by training providers, which have been accredited by national boards. They are globally marketed under the brand name "ISTQB Certified Tester".

3. Certified Software Test Professional (CSTP) and Certified Test Manager (CTM) certifications

www.iist.org

The International Institute for Software Testing (IIST) has been offering the Certified Software Test Professional (CSTP) certification since 1999. Currently there are thousands of people at different stages in the CSTP program. Although CSTP has been serving the purpose of establishing a foundation of software testing and providing test professionals with the skill and knowledge necessary to perform different test activities, a gap still exists in the management skills required by test managers and test leads to effectively manage the test process, the test project and the test organization. The Certified Test Manager (CTM) certification has been created to fill this gap. CTM is based on the Test Management Body of Knowledge (TMBOK) developed by IIST through its Advisory
Board.

Thank you,

Thursday, July 30, 2009

Set,Specify PDF font type in Flying Soucer & iText

The following Java code shows you how to provide the font face for the created PDF output as same as in the input HTML or XHTML.

public static void createPDF(String url, String pdf)
throws IOException, DocumentException {
OutputStream os = null;
try {
os = new FileOutputStream(pdf);

ITextRenderer renderer = new ITextRenderer();
ResourceLoaderUserAgent callback = new ResourceLoaderUserAgent(renderer.getOutputDevice());
callback.setSharedContext(renderer.getSharedContext());
renderer.getSharedContext ().setUserAgentCallback(callback);

Document doc = XMLResource.load(new InputSource(url)).getDocument();


renderer.getFontResolver().addFont("C:\\Windows\\Fonts\\Verdana.TTF","UTF-8", BaseFont.NOT_EMBEDDED);
renderer.setDocument(doc, url);
renderer.layout();
renderer.createPDF(os);

os.close();
os = null;
} finally {
if (os != null) {
try {
os.close();
} catch (IOException e) {
// ignore
}
}
}
}


"renderer.getFontResolver().addFont()" is the key method used the set the font face information of the PDF generated.

"BaseFont.NOT_EMBEDDED" specify not to embed the font in generated PDF.

"url" is the input HTML/XHTML file path.

"pdf" is the generated PDF file path.

Please find the input XHTML/HTML below:

<html>
<head>
<style type="text/css">
data
{
font-family: "Verdana";
}
</style>
</head>
<body style="font-size:16px">
<data>
<center style="font-size:24px">
<b>Hi Prasad...</b></center>
</data>
</body>
</html>


You can similarly embed the font in the generated PDF by changing parameters passed to "renderer.getFontResolver().addFont"

Thanks, have a nice day!

Search