<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CFTT Federated Testing CD - test a Mobile Device tool</title>
<link rel="stylesheet" type="text/css" href="../css/reset.css" media="screen" />
<link rel="stylesheet" type="text/css" href="../css/main_style.css" media="screen" />
<!--<link rel="stylesheet" type="text/css" href="../css/main_style-di-home-page.css" media="screen" />-->
<link rel="stylesheet" type="text/css" href="../css/layout.css" media="screen" />
</head>
<body id="menu1">
	<div id="mainWrapper">
		<div id="topBannerContainer">
			<div id="logoContainer">
  				<img src="/images/banner.png" alt="CFTT Federated Testing - NIST">
			</div>
            <!-- Menu Starts-->
			<div id="menuContainer">
                          <?php
                                include '../include/global.php';
                                print_main_horizontal_menu_contents();
                          ?>
    		</div>
            <!-- Menu Ends-->
		</div>
		<!-- TopBanner Ends-->
	  
		<!-- Main Content Starts-->	
		<div id="subContentContainer">
		  <div id="leftContent">
		    <div id="leftLinks">
			  <div>
<?php
include '../include/mdt-global.php';
?>
		      </div>
		    </div>
		  </div>			
		  <div id="rightContent">
<!--		    <div id="breadcrumb"><a href="../Federated_Testing_Home_Page.php">Home</a> > Test a disk imaging tool</div>-->
		    <div id="breadcrumb"><a href="../Federated_Testing_Home_Page.php" class="nav">Home</a> > Mobile Device Testing Home</div>
			

<h1>Mobile Device Testing Home</h1>
<div style="padding: 0em 1em .25em .5em; background: #eeeeee url(/images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x;">

    <p>Welcome to Federated Testing for Mobile Devices. The following steps will guide you 
     in testing a mobile forensics data extraction tool. Use the selections from the left 
     hand menu at any time to navigate to different parts of the testing process or to 
     return to this page. Testing has two parts: 1) populating &amp; documenting test devices using the Quick Start Guide (steps 2-3) and 2) setting up, running &amp; documenting tests (steps 4-9).<br></p>
    <ol>
	  <li>Use the '<a href="/formatyourthumb.php?ref=md">Format Your Log Drive FT-LOGS</a>' 
      page to prepare a flash drive for storing test logs.</li>
      <li>Select a set of mobile devices (e.g., phones, tablets, SIM/UICCs) for use in testing. 
      It is recommended you select devices that are similar to what you see in case work. 
      Note: these can be used devices. </li>
<!--
      <li>Populate and/or document the selected devices per the <i>Quick Start Guide for Populating 
      Test Devices</i> (<a 
      href="QuickStartGuideForPopulatingTestDevices_v10.docx">docx</a>, <a 
      href="QuickStartGuideForPopulatingTestDevices_v10.pdf">pdf</a>).</li>
-->
      <li>Populate and/or document the selected devices.
		  <ul>
		      <li style="color: red;"><img src="/images/sign_warning-24x24.png" alt="" height="22" width="22" style="margin:0px 0;"> <b>IMPORTANT:</b> Make sure that your log drive is mounted. You can mount your log drive by  
			  clicking on its icon in the launch bar.</li> 
<?php  
$filename = 'QuickStartGuideForPopulatingTestDevices_v2.docx';

 		      echo "<li>Click the 'Write Quick Start Guide to Log Drive' button to write the <i>".$filename."</i> document to your log drive.<p>";
			echo ' <form method="POST" action="mdt.php?state=1">';
			echo '   <input value="Write Quick Start Guide to Log Drive" type="submit">';
			echo ' </form>';
			echo ' </p>';

		      // try to get a value for $state (which page we're on) off the current page's url
		      // No value: page state 0; state = 1: page state 1
		      $state = "";
		      if (array_key_exists('state', $_GET) ){		
			  $state = $_GET["state"];
		      }

		      if ($state == "1"){ // page state 1 - i.e., user clicked the 'Write QS Guide to Log Drive' button
			  $continue = 1;

			  // is_ftlogs_mounted() returns the path to where we should store log files (e.g.,  
			  // /tmp or /media/FT-LOGS). It also checks if the user has mounted their log drive.
			  // is_ftlogs_mounted() will return 0/false and print an error message if the 
			  // user's log drive is not mounted
			  echo "<div  style=\"font-size:.9em;\">";
			  $path = is_ftlogs_mounted(FALSE);
			  echo "</div>";

			  if (!$path) { 
			      // if the user's log drive isn't mounted, don't continue
			      $continue = 0;
			  }

			  // if the user's log drive isn't mounted, don't continue
			  if ($continue){
			      // if the path is /media/FT-LOGS, then we're in the production environment;
			      // do the copy. Else, do not.
			      //if ($path == "/media/FT-LOGS"){ 
				  // see if we can open the config file
				  if (copy($filename, $path."/".$filename)){
				      echo "<p style=\"font-size:.9em;\">'".$filename."' written to '".$path."'.</p>";
				  } else {
				      echo "<p style=\"font-size:1em;\"><b>Error: <i>".basename($_SERVER['PHP_SELF'])."</i> encountered ";
				      echo "an error trying to copy '".$filename."' to '".$path."'.</b></p>";
				  }
			      //} else { // we're in the development environment
			      //}
			  }	
		      } else { // page state 0 - i.e., user hasn't clicked the button yet/do nothing
		      } 
		 echo '</li>';
		 echo '<li>Open '.$filename.' from your log drive and use it to populate and/or document the selected devices.</i></li>';
		  ?>
	      </ul>
      </li>
<!--
      <li>Populate and/or document the selected devices per the <a 
      href="QuickStartGuideForPopulatingTestDevices_v10.docx">Quick Start Guide for Populating 
      Test Devices</a>.</li>
-->
      <li>Describe the tool being tested using the '<a href="get-tool-name.php">Enter Tool 
      Name and Version</a>' page.</li>
      <li>Use '<a href="ft_mdt_get_device.php">Create/Edit Mobile Device List</a>' to record the devices.</li>
      <li>For each device, use the '<a href="ft_mdt_select_setup.php">Record Device Setup</a>' 
      pages to document the device’s contents.</li>
      <li>Select '<a href="ft_mdt_test_tool.php">Mobile Tool Testing</a>' and follow the directions to run the needed tests. 
<!--      <li>Select the <b>Test Tool - Mobile Test Runs</b> link.  Follow the directions to run the needed tests. -->
      It is recommended that you record test results after testing each device.</li>
	  <li>For each mobile device record test results using the 
      '<a href="ft_mdt_select_results.php">Record Device Test Results</a>' pages.</li>
      <li>Use the '
	<?php
	// if doing dev work on mac, want to pass /tmp as path to log drive; if on Linux,
	// pass /media/FT-LOGS 
	$mac = '/Applications/MAMP';
	$linux = '/usr/lib/cgi-bin';
	if (file_exists($mac)){
	  // if on mac, 
	  echo '<a href="/generatefinalreport.php?ref=md&path=/tmp">';
	} else {
	  // else, on linux,
	  echo '<a href="/generatefinalreport.php?ref=md&path=/media/cftt/FT-LOGS">';
	}
?>      
      Generate a Test Report</a>' page to create a draft test report.  It will be 
      saved to the FT-LOGS flash drive.</li>
     </ol>
</div>		        
		</div>
		<div class="push"></div>
	</div>
    <!-- Footer Starts-->
        <?php
     $fn = $_SERVER["SCRIPT_FILENAME"];
          print_footer_contents($fn);
        ?>
    <!-- Footer Ends-->

</body>
</html>
