Print This Post This page as PDF Email This Post Microsoft SharePoint Server Mini Calendar Webpart

August 1st, 2009

Dot Net team at OffshoreSoftwareDevelopmentIndia.com has developed Microsoft SharePoint Server Mini Calendar Webpart. This MOSS 2007 Mini Calendar Webpart allows administrator to select any of the list to configure with the calendar. Calendar displays all the tasks, events in the calendar. Upon selecting the list, all the events/tasks will show in Mini calendar by highlighted background to the date. On mouse hover to that date, a popup will appear with all the events/tasks for that day. On clicking that link of the events/tasks, the page will redirect to that task/event page.

It is easy to install. Easy to configure. With rich functionalities.

Working with MOSS Mini Calendar:

There is often need to share information about important dates, appointments and meetings. The MOSS Mini Calendar provides all information.

When you import MOSS Mini Calendar on site it looks like as follows:

Mini Calendet for MOSs

(Fig. 1)

When click on Modify Shared Web Part (right top corner) of Fig. 1, it looks like as follows:

Mini Calendet for MOSs

( Fig. 2 )

What you see on right side of Fig. 2 are custom properties of the mini calendar.

  1. About us: When click on this, it displays company details in popup window.
  2. Select a list: It contains variety of contents like documents, form and templates, master page gallery, web part gallery etc.
  3. Select a display column: It contains different columns like name, title, created by, modify by related to selected list item. What you want to display on calendar please select from this list.
  4. Select a view to filter calendar items: select which items to display related to calendar item.
  5. Select a date column to base the calendar on: Means which items to display related to date column (e.g. created, modify).
  6. Select a Background Color: It sets calendar date cells background color.
  7. Select a Body Text Color: It sets calendar date cells text color.
  8. Select a Border Color: It sets calendar border color. It also sets calendar?s title back color.
  9. Select a Border Font Color: It sets calendar?s title fore color.
  10. Select a Highlight Color: It sets color on that cells where there are some events display in popup window by moving mouse over on cell as follow-
  11. Mini Calendet for MOSs

  12. Select a Highlight Font Color:
  13. Mini Calendet for MOSs

  14. Select a Day Header Background Color: It sets the calendar?s day header background color.
  15. Mini Calendet for MOSs

  16. Select a Day Header Fore Color: It sets the calendar?s day header font color.
  17. Mini Calendet for MOSs

    By setting all above properties, click on OK button it display as Fig.1. Now When you take mouse over the highlight cell it display popup window as follow ?

    Mini Calendet for MOSs

    When click on any items it goes to that particular page.

    Calender Webpart Configuration: Webpart Properties

    Mini Calendet for MOSs

    Mini Calendet for MOSs

    Mini Calendet for MOSs

    Mini Calendet for MOSs

    Mini Calendet for MOSs

    Mini Calendet for MOSs

    Prerequisites:

    1. We need to make sure that timer job is running from:
    2. Administrative Tools >> Services >> Windows SharePoint Services Timer

      Mini Calendet for MOSs

      If service is not started please start it.

    3. Check whether solution is deployed or not.
    4. From - Central administration >> Operations >> Solutions

      Mini Calendet for MOSs

    5. If it is deployed then they can go ahead and activate feature manually by going to site collection
    6. Site Actions >> Site Settings >> Modify All Site Settings >> Site Collection Features.

      Mini Calendet for MOSs

Print This Post This page as PDF Email This Post Create Extension for Microsoft Office Accounting

August 1st, 2009

Dot Net team at OffshoreSoftwareDevelopmentIndia.com has created many Extensions for Microsoft Office Accounting. Here you will find how to create Microsoft Office Accounting extension.

Create Application Extension for Microsoft Office Accounting:

You can create your own application which can be integrated to your accounting company. You need to follow given steps for creating New Application which can be integrated to MOA.

Assumption: You might have created your company in MSOA and you have to pass company name in step - 9 at the place of “yourCompany.sbc”.

  1. Create Windows based Project.
  2. You have to add references of following DLLS.
    • ILoader: c:\WINDOWS\assembly\GAC_32\ILoader\2.0.5201.0__31bf3856ad364e35\ILoader.dll
    • SBAIAPI: c:\Program Files\Microsoft Small Business\Small Business Accounting 2007\Assemblies\SBAIAPI.dll
    • SBAIUI: c:\Program Files\Microsoft Small Business\Small Business Accounting 2007\Assemblies\SBAIUI.dll
  3. Now you need to Import two namespace for MOA
      - using Microsoft.BusinessSolutions.SmallBusinessAccounting.UI;
      -using Microsoft.BusinessSolutions.SmallBusinessAccounting;
  4. Provide the Information related to your Loader
      - const string loaderFULLNAME = “Loader, Version=2.0.5201.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″;
  5. Provide the details related to your Assembly
    • const string loaderNAMESPACE = “Microsoft.BusinessSolutions.SmallBusinessAccounting.Loader.Loader”;
  6. Create object for ISmallBusinessInstance.(It is an interface so no needs to create New Instance for this
  7. Load the assembly which was initialized before.
  8. Assembly assem = Assembly.Load(loaderFULLNAME);

  9. Load the assembly which in your system using Loader
  10. ILoader ldr = assem.CreateInstance(loaderNAMESPACE) as ILoader;

  11. Create string object and initialize with .sbc file which is stored in Your MYDocument. You can provide other path also.
    • string sbaFile = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) Path.DirectorySeparatorChar + “Small Business Accounting” Path.DirectorySeparatorChar + “Companies” + Path.DirectorySeparatorChar + “yourCompany.sbc”;
  12. Load the file in your application using loader.
  13. - sbi = ldr.GetSbaObjects(sbaFile).SmallBusinessInstance as ISmallBusinessInstance

  14. Now your sbi object (instance of SmallBusinessInstance) is ready to Use.

Manage customer details using SmallBusinessInstance Object

Now it’s time to implement SmallBusinessInstance object to access the details related to Customers. [sbi is an object of SmallBusinessInstance]

How to view existing customers?

  • Create object of DataTable. And initialize the Details of sbi.CustomerAccounts.DataView.Table to the object of DataTable.
  • You can use this DataTable object and assign that object to DataSource of GridView or ComboBox to view the details related to Customers.

How to create New Customers?

  • Create an object of ICustomerAccount. And assign the value of sbi.CreateCustomerAccount(); ICustomerAccount cust = sbi.CreateCustomerAccount();
  • Now you can access the Properties on Customer Account (e.g. Name, Active);
  • You cannot access the property of Address, Email and Fax directly from this object you need to create the object of ICustomerVendorAddress , ICustomerVendorEmail and ICustomerVendorFax respectively
    • ICustomerVendorAddress: You have to create object of ICustomerVendorAddress and initialize it. ICustomerVendorAddress address = cust.CustomerVendorAddresses.GetByType(CustomerVendorAddressType.Business); where you can find different CustomerVendorAddressType. Like (Business, Home, Postal, etc) Now you can access the properties of Address.
    • ICustomerVendorEmail: You have to create object of ICustomerVendorAddress and initialize it. ICustomerVendorEmail emailAddress = cust.CustomerVendorEmails.GetByType(CustomerVendorEmailType.Email1); where you can find different CustomerVendorEmailType. Like (Email1, Email2, and Email3). Now you can access the properties of Email
    • ICustomerVendorFax: You have to create object of ICustomerVendorAddress and initialize it. ICustomerVendorFax faxNumber = cust.CustomerVendorFaxes.GetByType(CustomerVendorFaxType.Business); where you can find different CustomerVendorFaxType. Like (Business, Home and Other). Now you can access the properties of Fax.
  • Now you can save the Customer. cust.Save();

Manage Payment details using SmallBusinessInstance object Now you can implement the Payment module of customer in following ways.

How to Create New Payment for Customers?

  • For payment of customer you have to specify for which customer you need to make payment.
  • You need to provide AccountId of customer for Payment.
  • Create ICustomerAccount object and initialize it with sbi.CustomerAccounts
    ICustomerAccount cust = (ICustomerAccount)sbi.CustomerAccounts.GetByPrimaryKey(AccountID);
  • Create object of ICustomerPayment and initialize it with sbi.CreateCustomerPayment()
    ICustomerPayment payment = sbi.CreateCustomerPayment();
  • Now assign the value of payment.Customer as cust
    payment.Customer = cust;
  • Now provide the details of Amount.
  • And finally save the record
    payment.Save();

Manage Invoice details using SmallBusinessInstance object. You can manage the details of Invoice using the APIs of Microsoft Accounting.

How to View existing Invoice?

  • Create object of DataTable. And initialize the Details of sbi.SalesInvoices.DataView.Table to the object of DataTable.
  • You can use this DataTable object and assign that object to DataSource of GridView or ComboBox to view the details related to Invoice.

How to create New Invoice?

  • For Invoice of customer you have to specify for which customer you need to create invoice.
  • You need to provide AccountId of customer for creating Invoice.
  • Create object of ISalesInvoice and initialize it with sbi.CreateSalesInvoice(false). ISalesInvoice invoice = sbi.CreateSalesInvoice(false);
  • Create object of IItemLine.

IItemLine line;

  • Initialize the object of IItemLine with invoice.CreateSalesInvoiceLine(parameters) IItemLine line = invoice.CreateSalesInvoiceLine(DocumentLineType.ContractItemLineType) as IItemLine;
  • Now assign the value for LineItem property of IItemLine object line.LineItem = sbi.ItemAccounts.GetByPrimaryKey(ProdId) as IItemAccount;
  • Provide the Quantity and other details of IItemAccount object.
  • Finally save the details of Invoice

invoice.Save();

Print This Post This page as PDF Email This Post Magento Modules - OnForce Buyer integration

July 8th, 2009

Magento team at OffshoreSoftwareDevelopmentIndia.com has developed an Magento module for OnForce Buyer. This module creates order to Onforce from buyer’s Magento website, getting all products’ information from Onforce, getting shipping information from Onforce, updating the order status from Onforce. That means if you are a Buyer of Onforce running your store with Magento, this module will help to complete all buyer transactions with OnForce. If you are not running Magento store, OffshoreSoftwareDevelopmentIndia.com team can help you migrating your current store to Magento and implement this module.

About Onforce:

OnForce provides access to a trusted national network of onsite service providers connecting service demand with local supply through an online marketplace ? easily, efficiently and profitably within America and Canada. OnForce gives instant access to over 12,000 highly qualified service professionals who work in a number of technology categories, including computers, printers, networking, VoIP, point of sale and consumer electronics nationwide. They conduct break-fix, repair, training, parts swap and install services throughout the US and Canada.

The OnForce marketplace offers rollout, installations, repairs, training and other onsite support services in a wide range of categories, including Consumer Electronics - Audio, Home Theater, Network / Server, Projector, Security, Telephone / Intercom, Information Technology - Network, PC Desktop, PC Laptop, Point of Sale, Software and many more

OnForce offers a new model for managing  services business while saving costs and growing revenue, called it Variable Demand Management.

For more information please visit www.onforce.com.

About Magento:

Magento is a new professional open-source eCommerce solution offering unprecedented flexibility and control. You can Control every facet of your store, from merchandising to promotions and more. Due to its rich functionality, Magento is widely used for the ecommerce websites. There is no credit check functionality in Magento ecommence.

About OnForce Buyer Magento module:

Magento team at OffshoreSoftwareDevelopmentIndia.com has developed Magento module/extension for OnForce Buyer integration.

Any OnForce Buyer can now use Magento to sell all OnForce products and services.

All products of Magento based store can be integrate with the OnForce services from Admin section.

When user purchases any products from Magento based store, and generates order, the order will be generate on the OnForce.

All the shipping information from the OnFoce will be available in Magento checkout process.

Customers of Magento based store can view their order and check the current status of order from OnForce.

If you are OnForce Buyer and planning to open online store, this extension helps you to use super rich functionality of the Magento and Integration with the OnForce.

In summary, this module/extension creates order to Onforce from Buyer’s Magento website, getting all products’ information from Onforce, getting shipping information from Onforce, updating the order status from Onforce.

If you are OnForce Buyer and yet not have any online store or want to upgrade existing store with Magento, please drop an email on info@offshoresoftwaredevelopmentindia.com

Print This Post This page as PDF Email This Post OTP Bank Payment Gateway Module for Magento

July 6th, 2009

Magento team at OffshoreSoftwareDevelopmentIndia.com has developed OTP Bank payment gateway module for the Magento for Hungary. There is no OTP Bank Hungarian Payment module with the standard Magento solution. As on the requirement from one of the OTP Bank Hungarian client, OTP Bank Hungarian payment module integration is successfully delivered.

About OTP Bank Hungary:

OTP Bank Plc. is the largest bank among Hungarian credit institutions and the dominant player in each segment of the Hungarian banking market at the same time. Therefore, OTP Bank is the most significant member of the OTP Group. OPT bank card Internet Payment Interface provides a communication, transaction controlling and feedback interface required for executing banking transactions for WebShops or WebShop-like operating other services.

For more information please visit www.otpbank.hu.

About Magento:

Magento is a new professional open-source eCommerce solution offering unprecedented flexibility and control. You can Control every facet of your store, from merchandising to promotions and more. Due to its rich functionality, Magento is widely used for the ecommerce websites. There is no standard payment integration feature for the Iveri in Magento ecommence.

About OTP Bank payment gateway module for Magento:

There is no OTP Bank Hungarian Payment module with the standard Magento solution. OPT bank card Internet Payment Magento module Interface provides a communication, transaction controlling and feedback interface required for executing banking transactions for any Magento store.

This module enables all the OPT bank card Internet Payment Interface. Administrator can configure the this module with all settings. All the credentials will be stored in the Admin section. Once the module is enabled from Magento admin, the front store will enable payment interface with OTP bank. All the order information will forward to OTP bank and upon confirmation of the payment, the order transaction on Magento store gets the status of the payment.

Please drop an email at info@offshoresoftwaredevelopmentindia.com for more information about OTP bank payment module with Magento.

Print This Post This page as PDF Email This Post CIB Bank Payment Gateway Module for Magento

July 4th, 2009

Magento team at OffshoreSoftwareDevelopmentIndia.com has developed CIB Bank payment gateway module for the Magento for Hungary. There is no CIB Bank Hungarian Payment module with the standard Magento solution. As on the requirement from one of the CIB Bank Hungarian client, CIB Bank Hungarian payment module integration is successfully delivered.

About CIB Bank Hungary:

CIB Bank has become a universal bank, and has gained an influential role in the Hungarian financial market, the new group, with its cca. 20% market share is the largest bank group of Italy, it is among the top banks of the European financial market. CIB Bank and Inter-Europa Bank have also joined their forces, which was resulted in a branch network of almost 140 units, multiple prize-winner electronic channels, and many renewed products and services. CIB bank card Internet Payment Interface provides a communication, transaction controlling and feedback interface required for executing banking transactions for WebShops or WebShop-like operating other services.

For more information please visit www.cib.hu

About Magento:

Magento is a new professional open-source eCommerce solution offering unprecedented flexibility and control. You can Control every facet of your store, from merchandising to promotions and more. Due to its rich functionality, Magento is widely used for the ecommerce websites. There is no standard payment integration feature for the Iveri in Magento ecommence.

AboutCIB Bank payment gateway module for Magento:

There is no CIB Bank Hungarian Payment module with the standard Magento solution. CIB bank card Internet Payment Magento module Interface provides a communication, transaction controlling and feedback interface required for executing banking transactions for any Magento store.

This module enables all the CIB bank card Internet Payment Interface. Administrator can configure the this module with all settings. All the credentials will be stored in the Admin section. Once the module is enabled from Magento admin, the front store will enable payment interface with CIB bank. All the order information will forward to CIB bank and upon confirmation of the payment, the order transaction on Magento store gets the status of the payment.

Please drop an email at info@offshoresoftwaredevelopmentindia.com for more information about CIB bank payment module with Magento.

Print This Post This page as PDF Email This Post Mgento Module - Footer More Links extension

June 13th, 2009

By Trupti,

Magento team at OffshoreSoftwareDevelopmentIndia.com has developed an Magento module for Footer Links.

This Footer links module for Magento contains the following items,

(1) All the categories in the tree structure with Category images.

(2) Top 12 searched performed on Magento Store,

(3) All static links in structured way, as defined in Admin section.

By Default this More links section remains hide in the footer. Once user click on more links it will display all the above links in the footer sections.

All the category links contains subcategories, clicling on + sign it will show all subcategories under the root Category.

Click on image to see Full image.

Footer Link Module - More Links When All links are Hide

More links are by default hidden. Once user click on more links, it will display all links as per the following image.

Displayed More Footer Links - Magento Module

Print This Post This page as PDF Email This Post Trick to speed up Eclipse

June 13th, 2009

By Paryank,

Trick to speed up Eclipse

Eclipse is one of the largest application in size which used for PHP development. Because of its large size and running through JVM (Java Virtual Machine), this application is very much slow in execution. Here are few configurations to be made to speed up Eclipse execution.

A file eclipse.ini is found under the directory from where eclipse is running. The following changes should be made in this file:

1. Find the lines containing -Xms40m and -Xmx256m and replace them with -Xms128m and -Xmx384m respectively.
2. Add the following lines at the end of the file

-vm
C:\Program Files\Java\jre1.6.0_11\bin\client\jvm.dll
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-XX:CompileThreshold=5
-Dcom.sun.management.jmxremote

NOTE: The path C:\Program Files\Java\jre1.6.0_11\bin\client\jvm.dll may differ according to JRE installation on your computer. Please find the correct path of jvm.dll file and put it accordingly.

Eclipse PDT 2.0 which is based on Eclipse 3.4 which is comparatively faster than Eclipse 3.3 or older.

Zend Studio which is also Eclipse PDT based IDE and provides similar functionality as Eclipse PDT.

But the latest version of Zend Studio (Version 6.1.2) which is still based Eclipse (Version 3.3). So it is recommended to use Eclipse PDT instead of Zend Studio for better performance until next version of Zend Studio is not released.

Print This Post This page as PDF Email This Post Magento Extension - Google XML sitemap Split Module

June 13th, 2009

By Paryank,

Magento team at OffshoreSoftwareDevelopmentIndia.com has developed an Magento module for Google XML sitemap spilt.

Default module of Magento creates only one XML Sitemap file. Google does not accept the file more than 10 MB or 50000 links. So If there large Magento shop with products more than 50000, It requires to spilt the sitemap after every 50000 links or size more than 10 MB.

The Magento extension Google XML Sitemap Split Module developed by OffshoreSoftwareDevelopmentIndia.Com fulfills this requirement.

In the configuration Admin can specify both, the size of the XML file and Links in XML file to be splitted. Whatever the confitions fulfills first, this module will create new sitemap XML file. It will repeat this process till all the links processed.

Admin will be able to see all the generated XML files in the TXT file in the XML SiteMap module.

Everytime when Admin click on Generate the XML file, It will delete all previous XML files and recreates all new files.

Please refere the following screens to understand Module functionality perfectly well.

SiteMap Configuration:

System - Configuration - Google Sitemap

Click on image to view complete image.

Magento Extension - Google Sitemap Split Module Configuration

Adding Sitemap:

Catalog - Google Sitemap

Click on image to view complete image.

Adding New Google Sitemap

Generate Google SitemMap:

Catalog - Google Sitemap

Click on image to view complete image.

Magento generate Google split XML Sitemap

Click on Generate Link to generate the Google XML siteamap.

Once XML sitemaps generate, Click on index.txt file to list all generated XML files.

Print This Post This page as PDF Email This Post Working with Selenium-Grid and run PHP Tests

June 1st, 2009

By Vaishal,

Working with Selenium-Grid

1. Download selenium Grid from
http://seleniumhq.org/download/
And extract files any location. Mostly in C:\selenium

2. Install latest jre from

http://java.sun.com/

3. Download ant from

http://ant.apache.org/
Extract files in C:\Ant.

- Set environment variable ANT_HOME as
- Go to the properties menu of MyComputer
- Go to the advance menu and click on ‘Environment Variable’
- Click on new and Enter value ‘ANT_HOME’ variable with your folder value where you have installed Ant.
- Now set the path variable as
Edit value and add location of your ant\bin folder

4. Now go to the selenium-grid folder from command prompt and launch-hub as follow:

ant launch-hub

Hub will start on port no 4444 as follow:

5. Now start remote server from new terminal from same selenium-grid folder as follow

ant launch-remote-control

It will start as follow:

6. Now in browser go to the hub location by

http://localhost:4444/console

It will look like

7. To start more remote server enter
ant -Dport=5556 launch-remote-control
ant -Dport=5557 launch-remote-control
ant -Dport=5558 launch-remote-control

8. Now the hub on browser will show as

Available Remote Controls
Host Port Environment
localhost 5555 *firefox
localhost 5556 *firefox
localhost 5557 *firefox
localhost 5558 *firefox

Note: The total run time is directly proportional to the number of available remote controls. So don?t start more controls if not necessary.

9. Run the hub

This setup illustrates that you can run the hub and the remote controls on arbitrary machines. When you do so though, you need to provide a lot more information when launching a remote control. You need to launch it with:
ant -Dport=<port> -Dhost=<hostname> -DhubURL=<hub url> launch-remote-control
Where:

port Port that the remote control will be listening at. Must be unique on the machine the remote control runs on. hostname Hostname or IP address of the machine the remote control runs on. Must be visible from the Hub machine. Note: this information could be inferred as it is always referring to the machine the remote control runs on. It might not be required in future versions of the Selenium Grid. hub url Which hub the remote control should register/unregister to. If the hub is running on hostname my.hub.com, this URL will be http://my.hub.com:4444

10. Now to run a test open new cmd prompt and go the test folder.
phpunit Example

11. This will start the test.

Print This Post This page as PDF Email This Post Working with Selenium-IDE & Running PHP Unit tests

June 1st, 2009

By Vaishal,

Working with Selenium-IDE | Running Functional Tests | Runnig PHP Unit Tests

Selenium IDE is an integrated development environment for Selenium tests. It is implemented as a Firefox extension, and allows you to record, edit, and debug tests. Selenium IDE includes the entire Selenium Core, allowing you to easily and quickly record and play back tests in the actual environment that they will run.

Selenium IDE is not only recording tool: it is a complete IDE. You can choose to use its recording capability, or you may edit your scripts by hand. With auto-complete support and the ability to move commands around quickly, Selenium IDE is the ideal environment for creating Selenium tests no matter what style of tests you prefer.

1. Download selenium IDE from
http://selenium-ide.openqa.org/download.jsp

This will directly add IDE as fire-fox add-ons.
https://addons.mozilla.org/en-US/firefox/addon/2079
2. Start Firefox and then Start Selenium IDE: Tools->Selenium IDE.

You will see the following window.

3. Enter base url or open the site on which you want to perform functional testing.
IDE will directly open in play mode with the entry of base url as below. Here we want to perform testing on http://www.offshoresoftwaredevelopmentindia.com/

4. After starting the IDE now simply browse the site. It  makes entry in the table as below

Now the entire test is like

Now stop recording by pressing red button.

In html format it looks like

We can export this file in any format we want as

In PHP format it looks as

5. Now to run the recorded test open new browser and press the green - play button

6. The test will run as follow

7. If there will be any error then that test will be highlighted by red line as

8. If you are on a slow internet connection than it may help to slow the test speed.

9. You can save the test case in php as follow..

Required changes in the exported PHP file is as follow

a. Change the class name same as stored file name as default class name will be ?Example?.
b. Enter the web-site name in the
$this->setBrowserUrl(”http://change-this-to-the-site-you-are-testing/“);
Field.
c. Available browser options are
*iexplore
*konqueror
*firefox
*mock
*pifirefox
*piiexplore
*chrome
*safari
*opera
*iehta
*custom
That is write as follow
$this->setBrowser(”*chrome”);
(When we define browser as chrome then no need to get security certificate but in case of firefox or iexplore we need to take certificate. )

10. Downloading and installing Selenium RC
Selenium RC is a Java based command line server that starts browsers and runs commands you pass from your tests.

a. First make sure you have a Java runtime installed on your machine.
Otherwise download it from
http://www.java.com/en/download/manual.jsp
http://java.sun.com/javase/6/docs/technotes/guides/jweb/otherFeatures/jre_install.html
Test the version of JRE by entering command on command line as ?
java -version
b. Download Selenium RC from http://selenium-rc.seleniumhq.org/download.html.
c. After extracting the files from the archive copy the ?selenium-server.jar? file to any directory you feel appropriate.
d. Start the Selenium RC server from the command-line by issuing the following command:
java -jar selenium-server.jar
This will start the server on port 4444.
e. Now the server is ready to accept test commands from your PHP script. Make sure you keep this server running till you finish testing.

11. Changes in selenium-server.jar file requires to run in Firefox is as below:

a. Open selenium-server.jar using winrar
b. locate 2 dirs: customProfileDirCUSTFFCHROME and customProfileDirCUSTFF
c. recursively explore each of those dirs, and when you find a file called install.rdf drag it to some temp location, and edit the following line:
<em:maxVersion>2.0.0.*</em:maxVersion>
change it to:
<em:maxVersion>4.0.0.*</em:maxVersion>
d. drag the install.rdf back into the archive and overwrite the old one.
e. do this for all the install.rdf files in those 2 dirs.

12. Installing PHPUnit
a. An easy way to install PHPUnit is to use the PEAR installer. The PEAR channel (pear.phpunit.de) is used to distribute PHPUnit so make sure that it is registered with your local PEAR environment:
pear channel-discover pear.phpunit.de
After the channel is registered install PHPUnit:
pear install phpunit/PHPUnit
Actual testing

Now that PHPUnit is installed and the Selenium RC server is up and running, it?s time to run our test we saved before in our ?Example.php? file. Type the following on your command-line:
phpunit Example

13. This will start the test. The PHPUnit Selenium driver will execute each test command from your file and send it to the Selenium server, which does the job of launching the appropriate browser, opening web pages, and performing various specified actions; and closing the browser after the test completes.

This will open new browser as

After successful execution the output will be as

Note: All Images will coming soon.