Java Doc for FromExcelToXml.java in  » Test-Coverage » salome-tmf » salomeTMF_plug » pluginxlsxml » Import » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Test Coverage » salome tmf » salomeTMF_plug.pluginxlsxml.Import 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   salomeTMF_plug.pluginxlsxml.Import.FromExcelToXml

FromExcelToXml
public class FromExcelToXml (Code)
Read a Spreadsheet having requirements and test cases, and transform them in XML to be imported by Doc XML in SaloméTMF
author:
   Jérémie DEFAYE
version:
   1.0



Constructor Summary
public  FromExcelToXml(String fichierExcel, boolean selectionImportExigence, boolean selectionImportTest, boolean selectionImportParametre, boolean selectionImportEnvironnement, String creationCampagne, boolean selectionExecutionCampagnes)
    

Method Summary
public  voidcloseXmlAndXlsFiles()
    
public  StringcopyFileAttachements(String listePJ, String type, String exigenceLu)
    
public  StringcreateXmlFile(String nomFichierXml)
    
 voidcreeCampagne(String nomCampagne, ArrayList vectorElementsofCampaign, boolean selectionImportEnvironnement)
    
 voidcreeCampagnes(String creationCampagne, boolean selectionImportEnvironnement)
    
public  booleangetErreurImportFichier()
    
public  StringgetExigenceNonTrouvePourTest()
    
public  StringgetFichiersNonImportes()
    
public  booleangetIsErreurTraitementImport()
    
public  StringgetListeCampagneNonTrouve()
    
public  StringgetXMLFileName()
    
public  StringgetXmlDir()
    
public  voidlitLesExecutions(int debutExecutionCampagne, int hauteurExecutionCampagne)
    
public  voidlitLesResultatExecutionsTests(int debutResultatExecutionCampagne, int hauteurResultatExecutionCampagne)
    
public  voidlitPJetURL(Element ElementAAttachements, Sheet feuilleExcel, int ligneALire, boolean presenceColonneLienHypertexte, int numeroColonneLienHypertexte, boolean presenceColonnePieceJointe, int numeroColonnePieceJointe, String repertoirePieceJointe)
    
public  voidopenXLSFile(String FichierExcel)
    
public  voidreadFamilyTest(int i)
    
public  voidreadRequirementTest(int debutCasDeTest, int hauteurCasDeTest)
    
public  voidreadXlsTableCampagnes(boolean selectionImportExigence, boolean selectionExecutionCampagnes)
    
public  voidreadXlsTableEnvironnement(boolean selectionImportParametre)
    
public  voidreadXlsTableExecutionCampagnes(String valeurNomCampagne)
    
public  voidreadXlsTableParametre()
    
public  voidreadXlsTableRequirement()
    
public  voidreadXlsTableTest(boolean selectionImportExigence)
    
public  StringremoveSpecialCharacters(String chaineAModifier)
    
 StringrestorePath(String path)
    
public  voidtestColumnsPresenceCampagnes()
    
public  voidtestColumnsPresenceEnvironnement()
    
public  voidtestColumnsPresenceExecutionCampagnes()
    
public  voidtestColumnsPresenceParametre()
    
public  voidtestColumnsPresenceRequirement()
    
public  voidtestColumnsPresenceTests()
    
public  voidwriteActionTestAuto()
    
public  voidwriteActionTestManuel()
    
public  voidwriteFamilyRequirement()
    
public  voidwriteFamilyTest()
    
public  voidwriteRequirement(boolean familleExiste, int lignePourLirePJetURL)
    
public  voidwriteRequirementLinkToTest()
    
public  voidwriteSuiteTest()
    
public  voidwriteTest(int lignePourLirePJetURL)
    
public  voidwriteTestCase(int debutCasDeTest, int hauteurCasDeTest)
    
public  voidwriteXmlHeading()
    


Constructor Detail
FromExcelToXml
public FromExcelToXml(String fichierExcel, boolean selectionImportExigence, boolean selectionImportTest, boolean selectionImportParametre, boolean selectionImportEnvironnement, String creationCampagne, boolean selectionExecutionCampagnes) throws Exception(Code)
Read a Spreadsheet having requirements ans test cases, and transform them in XML to be imported by Doc XML in SaloméTMF
Parameters:
  selectionImportParametre - parametre case à cocher
Parameters:
  selectionImportEnvironnement - parametre case à cocher
Parameters:
  selectionExecutionCampagnes - parametre case à cocher
Parameters:
  selectionImportExigence - parametre case à cocher
Parameters:
  selectionImportTest - parametre case à cocher
Parameters:
  creationCampagne - parametre case à cocher
Parameters:
  fichierExcel - Name of the spreadsheet file
throws:
  java.lang.Exception - Language Exception




Method Detail
closeXmlAndXlsFiles
public void closeXmlAndXlsFiles()(Code)
Function that close the XLS and the XML file This function tries to delete empties spreadsheet's columns



copyFileAttachements
public String copyFileAttachements(String listePJ, String type, String exigenceLu) throws Exception(Code)
Function that verify if attachements are accessible and copy them into a same directory tree
Parameters:
  listePJ - File
Parameters:
  type - Requirement or test
Parameters:
  exigenceLu - Requirement linket to file
throws:
  java.lang.Exception - Language Exception New file diectory tree



createXmlFile
public String createXmlFile(String nomFichierXml)(Code)
Function that create the XML file from the name typed in the swing component
Parameters:
  nomFichierXml - Name of the XML file the real name of the created XML File



creeCampagne
void creeCampagne(String nomCampagne, ArrayList vectorElementsofCampaign, boolean selectionImportEnvironnement)(Code)
Fonction that generate acampaign
Parameters:
  nomCampagne - name of campaign to create
Parameters:
  vectorElementsofCampaign - vector containing all elements to create a campaign



creeCampagnes
void creeCampagnes(String creationCampagne, boolean selectionImportEnvironnement)(Code)
Fonction that generate campaigns
Parameters:
  creationCampagne - type of camapaign to create



getErreurImportFichier
public boolean getErreurImportFichier()(Code)
Function that return if the transformation in a XML File was OK boolean



getExigenceNonTrouvePourTest
public String getExigenceNonTrouvePourTest()(Code)
Function that only return the list of requirements that don't exist list of requirements that don't exist



getFichiersNonImportes
public String getFichiersNonImportes()(Code)
Function that only return the name of the files that had not been imported Name of files



getIsErreurTraitementImport
public boolean getIsErreurTraitementImport()(Code)
Function that only return true if there has been an error during import path



getListeCampagneNonTrouve
public String getListeCampagneNonTrouve()(Code)
listeCampagneNonTrouve listeCampagneNonTrouve



getXMLFileName
public String getXMLFileName()(Code)
Function that only return the name of the XML File Name of the XML File



getXmlDir
public String getXmlDir()(Code)
Function that only return the npath of the xlm created by this function path



litLesExecutions
public void litLesExecutions(int debutExecutionCampagne, int hauteurExecutionCampagne)(Code)
Lit les executions des campagnes
Parameters:
  debutExecutionCampagne - Début ligne
Parameters:
  hauteurExecutionCampagne - nombre de lignes à lire



litLesResultatExecutionsTests
public void litLesResultatExecutionsTests(int debutResultatExecutionCampagne, int hauteurResultatExecutionCampagne)(Code)
Lit les résultats d'executions des campagnes
Parameters:
  debutResultatExecutionCampagne - Début ligne
Parameters:
  hauteurResultatExecutionCampagne - nombre de lignes à lire



litPJetURL
public void litPJetURL(Element ElementAAttachements, Sheet feuilleExcel, int ligneALire, boolean presenceColonneLienHypertexte, int numeroColonneLienHypertexte, boolean presenceColonnePieceJointe, int numeroColonnePieceJointe, String repertoirePieceJointe)(Code)
read url and files for all spreadsheets
Parameters:
  ElementAAttachements - Element XML
Parameters:
  feuilleExcel - Feuille Excel
Parameters:
  ligneALire - ligne à lire
Parameters:
  presenceColonneLienHypertexte - presence Colonne Lien Hypertexte
Parameters:
  numeroColonneLienHypertexte - numéro Colonne Lien Hypertexte
Parameters:
  presenceColonnePieceJointe - presence colonne Piece Jointe
Parameters:
  numeroColonnePieceJointe - numéro colonne Piece Jointe
Parameters:
  repertoirePieceJointe - Répertoire de stockage des Piece Jointe



openXLSFile
public void openXLSFile(String FichierExcel)(Code)
Function testing the presence of the XLS file and open it
Parameters:
  FichierExcel - Name of the XLS File



readFamilyTest
public void readFamilyTest(int i)(Code)
read a family for a test
Parameters:
  i - numbre of line read



readRequirementTest
public void readRequirementTest(int debutCasDeTest, int hauteurCasDeTest)(Code)
Read all requirements linked to a test
Parameters:
  debutCasDeTest - integer
Parameters:
  hauteurCasDeTest - integer



readXlsTableCampagnes
public void readXlsTableCampagnes(boolean selectionImportExigence, boolean selectionExecutionCampagnes) throws Exception(Code)
Read all the spreadsheet for the campaigns
Parameters:
  selectionImportExigence - selection Import Exigence
Parameters:
  selectionExecutionCampagnes - selection Execution Campagnes
throws:
  java.lang.Exception - Exception



readXlsTableEnvironnement
public void readXlsTableEnvironnement(boolean selectionImportParametre) throws Exception(Code)
Read all the spreadsheet for the environments
throws:
  java.lang.Exception - Null pointer exception



readXlsTableExecutionCampagnes
public void readXlsTableExecutionCampagnes(String valeurNomCampagne)(Code)
Lit la feuille executions des campagnes
Parameters:
  valeurNomCampagne - Nom de la campagne



readXlsTableParametre
public void readXlsTableParametre() throws Exception(Code)
Read all the spreadsheet for the parameters
throws:
  java.lang.Exception - Null pointer exception



readXlsTableRequirement
public void readXlsTableRequirement() throws Exception(Code)
Function that read each cells of the requirement spreadsheet
throws:
  java.lang.Exception - Language Exception



readXlsTableTest
public void readXlsTableTest(boolean selectionImportExigence) throws Exception(Code)
Read all the spreadsheet for the test
Parameters:
  selectionImportExigence - selectionImportExigence
throws:
  java.lang.Exception - Exception



removeSpecialCharacters
public String removeSpecialCharacters(String chaineAModifier)(Code)
Modify a string to pass spécial characters like quote
Parameters:
  chaineAModifier - A string for argument A string



restorePath
String restorePath(String path) throws Exception(Code)



testColumnsPresenceCampagnes
public void testColumnsPresenceCampagnes()(Code)
Function that Verify the presence of parameters columns in the paremeter spreadsheet



testColumnsPresenceEnvironnement
public void testColumnsPresenceEnvironnement()(Code)
Function that Verify the presence of environments columns in the enviroment spreadsheet



testColumnsPresenceExecutionCampagnes
public void testColumnsPresenceExecutionCampagnes()(Code)
Function that Verify the presence of Execution campaigns columns in the Execution campaign spreadsheet



testColumnsPresenceParametre
public void testColumnsPresenceParametre()(Code)
Function that Verify the presence of parameters columns in the paremeter spreadsheet



testColumnsPresenceRequirement
public void testColumnsPresenceRequirement()(Code)
Function that verify the presence of requirement columns in the requirement spreadsheet



testColumnsPresenceTests
public void testColumnsPresenceTests()(Code)
Function that Verify the presence of test columns in the test spreadsheet



writeActionTestAuto
public void writeActionTestAuto()(Code)
Write automatic tests



writeActionTestManuel
public void writeActionTestManuel()(Code)
Write one action for a test



writeFamilyRequirement
public void writeFamilyRequirement()(Code)
Function that write a family Requirement in the XML File



writeFamilyTest
public void writeFamilyTest()(Code)
Function that write a family test in the XML File



writeRequirement
public void writeRequirement(boolean familleExiste, int lignePourLirePJetURL)(Code)
Function that write a Requirement in the XML File
Parameters:
  lignePourLirePJetURL - lignePourLirePJetURL
Parameters:
  familleExiste - boolean



writeRequirementLinkToTest
public void writeRequirementLinkToTest()(Code)
Write a requirement linked to a test



writeSuiteTest
public void writeSuiteTest()(Code)
write suite test



writeTest
public void writeTest(int lignePourLirePJetURL)(Code)
Function that write a test in the XML File
Parameters:
  lignePourLirePJetURL - lignePourLirePJetURL



writeTestCase
public void writeTestCase(int debutCasDeTest, int hauteurCasDeTest)(Code)
Write a coplete test case
Parameters:
  debutCasDeTest - Integer
Parameters:
  hauteurCasDeTest - Integer



writeXmlHeading
public void writeXmlHeading()(Code)
Function that write the XML Heading (common to every XML files)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.