Exemple #1
0
            <td>Description</td>
            <td>Expected</td>
            <td>Result</td>
            <td>Selenium Logs</td>
            <td>Selenium Status</td>
        </tr> 
    </thead>
    <tbody>
        <?php 
foreach ($oracle as $key => $notice) {
    ?>
        <?php 
    //Recherche des paramètres de la fonction pour interpréter celles variables dans le jeu de test
    $params = Doctrine_Core::getTable('EiTestSetParam')->getParamForTestSetAndEiTestFunction($ei_test_set_id, $notice['ei_test_set_function_id']);
    $paramsOut = Doctrine_Core::getTable('EiTestSetParam')->getParamForLogAndEiTestSetFunction($ei_test_set_id, $notice['ei_test_set_function_id']);
    $urlFuncSubjects = url_for2("subjectFunction", array("function_id" => $notice['function_id'], "function_ref" => $notice['function_ref'], "action" => "functionSubjects", 'profile_name' => EiProfil::slugifyProfileName($profile_name), 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'project_id' => $project_id, 'project_ref' => $project_ref));
    ?>
        <tr class="state-<?php 
    echo strtolower($notice["statut_func_name"]);
    ?>
">
            <td><?php 
    echo $notice['position'];
    //.'/'.count($params).'/'.count($profileParams)
    ?>
</td>
            <td>
                <a href="<?php 
    echo $urlFuncSubjects;
    ?>
" target="_blank">
                    <?php 
    }
    ?>
                </td>
                <td>
                    <?php 
    if ($isTs) {
        ?>

                    <?php 
        echo link_to2(ei_icon('ei_show'), 'eitestset_oracle', array('project_id' => $project_id, 'project_ref' => $project_ref, 'ei_scenario_id' => $graph->getEiScenario()->getId(), 'ei_test_set_id' => $graph->getEiTestSet()->getId(), 'profile_name' => EiProfil::slugifyProfileName($profile_name), 'profile_id' => $profile_id, 'profile_ref' => $profile_ref), array('target' => '_blank', 'title' => 'Oracle'));
        ?>

                    &nbsp;&nbsp;
                    <?php 
        echo link_to2('<i class="fa fa-code fa-lg"></i>', "eitestset_oracle_download", array('project_id' => $project_id, 'project_ref' => $project_ref, 'ei_scenario_id' => $graph->getEiScenario()->getId(), 'ei_test_set_id' => $graph->getEiTestSet()->getId(), 'sf_format' => "xml", 'profile_name' => EiProfil::slugifyProfileName($profile_name), 'profile_id' => $profile_id, 'profile_ref' => $profile_ref), array('target' => '_blank', 'title' => 'XML logs'));
        ?>
                    &nbsp;&nbsp;
                    <a href="<?php 
        echo $urlExcelRequest;
        ?>
" data-id="<?php 
        echo $graph->getEiTestSet()->getId();
        ?>
" title="Excel" class="excel-open-logs excelIcon">
                        <img src="<?php 
        echo sfConfig::get("app_icone_excel_24x24_path");
        ?>
" alt="" width="20" title="Open logs in Excel" class="excel-icon-img disabledOracle" />
                        <?php 
        echo sfConfig::get("app_loader_excel_button");
    }
    ?>
                    </td>
                    <td>
                      <span style="background-color:<?php 
    echo $execution->getStatusColor();
    ?>
 " class="label">
                          <?php 
    echo $execution->getStatusName();
    ?>
                      </span>
                    </td>
                    <td>
                        <?php 
    echo link_to2(ei_icon('ei_show'), 'showCampaignExecutions', array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_name' => EiProfil::slugifyProfileName($profile_name), 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'campaign_id' => $ei_campaign->getId(), 'campaign_execution_id' => $execution->getId()), array('target' => '_blank', 'title' => 'Show details'));
    ?>
                    &nbsp; &nbsp; 
                    <?php 
    $statistics = $url_params;
    ?>
                    <?php 
    $statistics['campaign_id'] = $ei_campaign->getId();
    ?>
                    <?php 
    $statistics['campaign_execution_id'] = $execution->getId();
    $statistics['action'] = "statistics";
    ?>
 
                        <a href="<?php 
    echo url_for2("execution_stats", $statistics);
    <ul class="nav marge-none">
        <li class="divider-vertical"> </li>
        <li class="dropdown">

            <button id="scenarios_menu" class="btn dropdown-toggle" data-toggle="dropdown" role="button" data-target="#"> 
                <img src="/images/boutons/engrenage_small.png" alt="" class="pull-left" title="Scenarios menu"/>&nbsp;Test Suites <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">  
                    <li class="save_test_suit" ><a href="#" alt="Save"><img src="/images/boutons/save_scenery.png" alt="Save" /> Save </a></li>
                    <li class="create_scenario_clone">
                        <a href="#" alt="Save as" title="Copy the scenario"> <img src="/images/boutons/save_scenery.png" alt="Save as"/> Save as </a>
                    </li>

                    <li> 
                        <a href="<?php 
    echo url_for2('projet_eiscenario', array('project_id' => $ei_project->getProjectId(), 'project_ref' => $ei_project->getRefId(), 'action' => 'delete', 'profile_id' => $ei_profile->getProfileId(), 'profile_ref' => $ei_profile->getProfileRef(), 'profile_name' => EiProfil::slugifyProfileName($ei_profile->getName()), 'id' => $ei_scenario->getId()), array('confirm' => "Sure about deleting test suite? this involve deleting all versions and functions "));
    ?>
" alt="Delete" title="Delete the scenario"> 
                            <img src="/images/boutons/delete_test_suite.png" alt="Delete" /> Delete</a>

                    </li> 

                <?php 
    if (isset($ei_version) && $ei_version != null) {
        ?>
                <?php 
    } else {
        ?>
    
                  <?php 
        $profil_scenario = Doctrine_Core::getTable("EiProfilScenario")->findOneByEiScenarioIdAndProfileIdAndProfileRef($ei_scenario->getId(), $ei_profile->getProfileId(), $ei_profile->getProfileRef());
                    <a href="#delete_eiscenario_modal" data-toggle="modal">
                        &nbsp;&nbsp;<i class="icon-trash"></i>  Delete
                    </a>
                </li>
            </ul>  
 
 
 
    <div id="delete_eiscenario_modal" class="modal hide" role="dialog">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3>Delete <?php 
    echo $ei_scenario->getNomScenario();
    ?>
</h3>
        </div>
        <div class="modal-body modal-body-visible-overflow">
            <?php 
    echo "You are about to delete scenario <strong>" . $ei_scenario->getNomScenario() . "</strong>. All its versions will be deleted as well as data sets.<br/> Do you really want to delete " . $ei_scenario->getNomScenario() . " ?";
    ?>
        </div>
        <div class="modal-footer">
            <a href="#!" class="btn" data-dismiss="modal">Cancel</a>   
            <a  id="delete_scenario" href="<?php 
    echo url_for2("projet_eiscenario_action", array('project_id' => $sf_request->getParameter('project_id'), 'project_ref' => $sf_request->getParameter('project_ref'), 'profile_name' => EiProfil::slugifyProfileName($sf_request->getParameter('profile_name')), 'profile_id' => $sf_request->getParameter('profile_id'), 'profile_ref' => $sf_request->getParameter('profile_ref'), 'ei_scenario_id' => $ei_scenario->getId(), 'action' => 'delete'));
    ?>
" class="btn btn-danger"> Delete </a>
        </div>
    </div>
<?php 
}
<?php

if (isset($ei_function) && isset($ei_project) && isset($ei_profile) && isset($ei_tree)) {
    $urlParams = array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_name' => EiProfil::slugifyProfileName($profile_name), 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, "function_id" => $ei_function->getFunctionId(), "function_ref" => $ei_function->getFunctionRef());
    ?>

<table class="table table-bordered table-striped dataTable"> 
    <tbody> 
        <tr>
            <th>Title</th>
            <td><?php 
    echo $ei_tree->getName();
    ?>
</td>
        </tr>
        <tr>
            <th>Criticity</th>
            <td>
                <?php 
    $criticity_tab = $urlParams;
    $criticity_tab['action'] = 'changeCriticity';
    ?>
 
                <?php 
    $criticity = $ei_function->getCriticity() == null ? "Blank" : $ei_function->getCriticity();
    ?>
  
                <a class="<?php 
    echo 'btn  criticity  criticity-' . $criticity;
    ?>
 " id="changeFunctionCriticity"  title="Change function criticity ?"