The components of different platforms usually need their proprietary testing languages to execute test cases. Thus it is essential to propose XML API-based test framework, which builds on standard component and supports different languages test on cross platforms. This study developed a general component extension test Interface (CETI) consisted of 4 kinds of function ports. Then on the basis of the traditional component interface mutation, it provides an XML API-based extension interface mutation testing approach which uses XML as test specification language. In addition, XACML- based API presents a technique for using mutation analysis to test the semantic correctness of component access control interface. The test framework has a lot of advantages, such as the multi-functional and visual testing interface, cross-platform and general-purpose test script language. The preliminary experiments show that it can be used towards different application platforms, such as Linux, Windows and component testing environments, for example, CORBA, EJB and COM et al.