Package br.eti.kinoshita.testlinkjavaapi.model

Examples of br.eti.kinoshita.testlinkjavaapi.model.Build


    /**
     * @param map
     * @return Build.
     */
    public static final Build getBuild(Map<String, Object> map) {
        Build build = null;
        if (map != null && map.size() > 0) {
            Object o = map.get(TestLinkResponseParams.ID.toString());
            if (o != null) {
                Integer id = Integer.parseInt(o.toString());

                if (id > 0) {
                    build = new Build();
                    build.setId(id);

                    build.setName(getString(map, TestLinkResponseParams.NAME.toString()));
                    build.setNotes(getString(map, TestLinkResponseParams.NOTES.toString()));
                    build.setTestPlanId(getInteger(map, TestLinkResponseParams.TEST_PLAN_ID.toString()));
                    build.setName(getString(map, TestLinkResponseParams.NAME.toString()));
                    // TBD: add is open, release date, closed on date and active
                    // to Build entity
                }

            }
View Full Code Here


   * @param map
   * @return Build.
   */
  public static final Build getBuild( Map<String, Object> map )
  {
    Build build = null;
    if ( map != null && map.size() > 0 )
    {
      Object o = map.get( TestLinkResponseParams.id.toString());
      if ( o != null )
      {
        Integer id = Integer.parseInt( o.toString() );
       
        if ( id > 0 )
        {
          build = new Build();
          build.setId( id );
         
          build.setName( getString(map, TestLinkResponseParams.name.toString()) );
          build.setNotes( getString(map, TestLinkResponseParams.notes.toString()) );
          build.setTestPlanId( getInteger(map, TestLinkResponseParams.testPlanId.toString()) );
          build.setName( getString(map, TestLinkResponseParams.name.toString()) );
          // TBD: add is open, release date, closed on date and active to Build entity
        }
       
      }     
    }
View Full Code Here

   * @param map
   * @return
   */
  public static final Build getBuild( Map<String, Object> map )
  {
    Build build = null;
    if ( map != null && map.size() > 0 )
    {
      Object o = map.get( TestLinkResponseParams.id.toString());
      if ( o != null )
      {
        Integer id = Integer.parseInt( o.toString() );
       
        if ( id > 0 )
        {
          build = new Build();
          build.setId( id );
         
          build.setBuildName( getString(map, TestLinkResponseParams.name.toString()) );
          build.setBuildNotes( getString(map, TestLinkResponseParams.notes.toString()) );
          build.setTestPlanId( getInteger(map, TestLinkResponseParams.testPlanId.toString()) );
          build.setBuildName( getString(map, TestLinkResponseParams.name.toString()) );
          // TBD: add is open, release date, closed on date and active to Build entity
        }
       
      }     
    }
View Full Code Here

  @SuppressWarnings("unchecked")
  protected Build createBuild(Integer testPlanId, String buildName, String buildNotes)
  throws TestLinkAPIException
  {
    Build build = null;
   
    Integer id = 0;
   
    build = new Build(
      id,
      testPlanId,
      buildName,
      buildNotes);
 
    try
    {
      Map<String, Object> executionData = Util.getBuildMap(build);
      Object response = this.executeXmlRpcCall(
          TestLinkMethods.createBuild.toString(), executionData);
      Object[] responseArray = Util.castToArray(response);
      Map<String, Object> responseMap = (Map<String, Object>)responseArray[0];
     
      id = Util.getInteger(responseMap, TestLinkResponseParams.id.toString());
      build.setId( id );
    }
    catch ( XmlRpcException xmlrpcex )
    {
      throw new TestLinkAPIException(
          "Error creating build: " + xmlrpcex.getMessage(), xmlrpcex);
View Full Code Here

   */
  @SuppressWarnings("unchecked")
  protected Build getLatestBuildForTestPlan( Integer testPlanId )
  throws TestLinkAPIException
  {
    Build build = null;
 
    try
    {
      Map<String, Object> executionData = new HashMap<String, Object>();
      executionData.put( TestLinkParams.testPlanId.toString(), testPlanId );
View Full Code Here

   * @param map
   * @return Build.
   */
  public static final Build getBuild( Map<String, Object> map )
  {
    Build build = null;
    if ( map != null && map.size() > 0 )
    {
      Object o = map.get( TestLinkResponseParams.id.toString());
      if ( o != null )
      {
        Integer id = Integer.parseInt( o.toString() );
       
        if ( id > 0 )
        {
          build = new Build();
          build.setId( id );
         
          build.setName( getString(map, TestLinkResponseParams.name.toString()) );
          build.setNotes( getString(map, TestLinkResponseParams.notes.toString()) );
          build.setTestPlanId( getInteger(map, TestLinkResponseParams.testPlanId.toString()) );
          build.setName( getString(map, TestLinkResponseParams.name.toString()) );
          // TBD: add is open, release date, closed on date and active to Build entity
        }
       
      }     
    }
View Full Code Here

   * @param map
   * @return Build.
   */
  public static final Build getBuild( Map<String, Object> map )
  {
    Build build = null;
    if ( map != null && map.size() > 0 )
    {
      Object o = map.get( TestLinkResponseParams.id.toString());
      if ( o != null )
      {
        Integer id = Integer.parseInt( o.toString() );
       
        if ( id > 0 )
        {
          build = new Build();
          build.setId( id );
         
          build.setName( getString(map, TestLinkResponseParams.name.toString()) );
          build.setNotes( getString(map, TestLinkResponseParams.notes.toString()) );
          build.setTestPlanId( getInteger(map, TestLinkResponseParams.testPlanId.toString()) );
          build.setName( getString(map, TestLinkResponseParams.name.toString()) );
          // TBD: add is open, release date, closed on date and active to Build entity
        }
       
      }     
    }
View Full Code Here

  @SuppressWarnings("unchecked")
  protected Build createBuild(Integer testPlanId, String buildName, String buildNotes)
  throws TestLinkAPIException
  {
    Build build = null;
   
    Integer id = 0;
   
    build = new Build(
      id,
      testPlanId,
      buildName,
      buildNotes);
 
    try
    {
      Map<String, Object> executionData = Util.getBuildMap(build);
      Object response = this.executeXmlRpcCall(
          TestLinkMethods.createBuild.toString(), executionData);
      Object[] responseArray = (Object[])response;
      Map<String, Object> responseMap = (Map<String, Object>)responseArray[0];
     
      id = Util.getInteger(responseMap, TestLinkResponseParams.id.toString());
      build.setId( id );
    }
    catch ( XmlRpcException xmlrpcex )
    {
      throw new TestLinkAPIException(
          "Error creating build: " + xmlrpcex.getMessage(), xmlrpcex);
View Full Code Here

   */
  @SuppressWarnings("unchecked")
  protected Build getLatestBuildForTestPlan( Integer testPlanId )
  throws TestLinkAPIException
  {
    Build build = null;
 
    try
    {
      Map<String, Object> executionData = new HashMap<String, Object>();
      executionData.put( TestLinkParams.testPlanId.toString(), testPlanId );
View Full Code Here

   * @param map
   * @return
   */
  public static final Build getBuild( Map<String, Object> map )
  {
    Build build = null;
    if ( map != null && map.size() > 0 )
    {
      Object o = map.get( TestLinkResponseParams.id.toString());
      if ( o != null )
      {
        Integer id = Integer.parseInt( o.toString() );
       
        if ( id > 0 )
        {
          build = new Build();
          build.setId( id );
         
          build.setName( getString(map, TestLinkResponseParams.name.toString()) );
          build.setNotes( getString(map, TestLinkResponseParams.notes.toString()) );
          build.setTestPlanId( getInteger(map, TestLinkResponseParams.testPlanId.toString()) );
          build.setName( getString(map, TestLinkResponseParams.name.toString()) );
          // TBD: add is open, release date, closed on date and active to Build entity
        }
       
      }     
    }
View Full Code Here

TOP

Related Classes of br.eti.kinoshita.testlinkjavaapi.model.Build

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.