TCT implementation and bugs fixed
authorSehaj Singh Kalra <sehaj.kalra@samsung.com>
Fri, 3 Jun 2016 18:22:34 +0000 (23:52 +0530)
committerSehaj Singh Kalra <sehaj.kalra@samsung.com>
Fri, 3 Jun 2016 18:22:34 +0000 (23:52 +0530)
Change-Id: Ief0f4f131ff687f0a6dcd7a2878282ee0e2a068f
Signed-off-by: Sehaj Singh Kalra <sehaj.kalra@samsung.com>
36 files changed:
tct-runtimeinformation-tizen-tests/Makefile [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/Properties/AssemblyInfo.cs [new file with mode: 0644]
tct-runtimeinformation-tizen-tests/ReadMe.md [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/lib/Tizen.Internals.dll [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/lib/Tizen.Network.dll [deleted file]
tct-runtimeinformation-tizen-tests/lib/Tizen.UI.dll [deleted file]
tct-runtimeinformation-tizen-tests/lib/Tizen.dll [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/lib/Xamarin.Forms.Platform.Tizen.dll [deleted file]
tct-runtimeinformation-tizen-tests/lib/Xamarin.Forms.dll [deleted file]
tct-runtimeinformation-tizen-tests/org.test.tizen.newmodule.tpk [deleted file]
tct-runtimeinformation-tizen-tests/org.test.tizen.runtimeinformation.tpk [new file with mode: 0644]
tct-runtimeinformation-tizen-tests/res/ReadMe.md [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/NewModule.xml [deleted file]
tct-runtimeinformation-tizen-tests/res/Result/System.xml [new file with mode: 0644]
tct-runtimeinformation-tizen-tests/res/Result/style/application.js [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/back_top.png [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/blue.jpg [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/gray.jpg [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/jquery.min.js [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/orange.jpg [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/popup.js [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/red.jpg [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/summary.xsl [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/testresult.xsl [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/style/tests.css [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/Result/summary.xml
tct-runtimeinformation-tizen-tests/res/install.sh [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/pull.sh [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/push.sh [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/res/run.sh [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/share/res/icon.png [deleted file]
tct-runtimeinformation-tizen-tests/src/Program.cs [changed mode: 0644->0755]
tct-runtimeinformation-tizen-tests/src/TestMainPage.cs [deleted file]
tct-runtimeinformation-tizen-tests/src/Testcase/TSRuntimeInformation.cs
tct-runtimeinformation-tizen-tests/tct-runtimeinformation-tizen-tests.csproj [new file with mode: 0644]
tct-runtimeinformation-tizen-tests/tizen-manifest.xml [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
diff --git a/tct-runtimeinformation-tizen-tests/Properties/AssemblyInfo.cs b/tct-runtimeinformation-tizen-tests/Properties/AssemblyInfo.cs
new file mode 100644 (file)
index 0000000..dac2ee6
--- /dev/null
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("tct-runtimeinformation-tizen-tests")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Samsung Electronics")]
+[assembly: AssemblyProduct("tct-runtimeinformation-tizen-tests")]
+[assembly: AssemblyCopyright("Copyright ©  2016 Samsung Electronics Co., Ltd")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("fdaa3944-fcce-4319-b93e-61ff53137edb")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
old mode 100644 (file)
new mode 100755 (executable)
index 6aaa831..29816b0
@@ -9,7 +9,7 @@ tct-suite-tizen-tests
 ├── bin             - Contains executable file which is created by make file.
 ├── lib            - Library files which needs to be packed.
 ├── res            - Resource folder for any resources needed to run test.
-├── share        
+├── share
 ├── Makefile         - Script which builds package.
 ├── TCTCert.p12        - A Certificate file for building package. (pw:test)
 └── tizen-manifest.xml    - A Tizen Manifest file for declaring privilege and controls.
old mode 100644 (file)
new mode 100755 (executable)
index fa644e1..30c421b
Binary files a/tct-runtimeinformation-tizen-tests/lib/Tizen.Internals.dll and b/tct-runtimeinformation-tizen-tests/lib/Tizen.Internals.dll differ
diff --git a/tct-runtimeinformation-tizen-tests/lib/Tizen.Network.dll b/tct-runtimeinformation-tizen-tests/lib/Tizen.Network.dll
deleted file mode 100644 (file)
index 1a92ad6..0000000
Binary files a/tct-runtimeinformation-tizen-tests/lib/Tizen.Network.dll and /dev/null differ
diff --git a/tct-runtimeinformation-tizen-tests/lib/Tizen.UI.dll b/tct-runtimeinformation-tizen-tests/lib/Tizen.UI.dll
deleted file mode 100644 (file)
index 6b194c2..0000000
Binary files a/tct-runtimeinformation-tizen-tests/lib/Tizen.UI.dll and /dev/null differ
old mode 100644 (file)
new mode 100755 (executable)
index a6d2edf..f656769
Binary files a/tct-runtimeinformation-tizen-tests/lib/Tizen.dll and b/tct-runtimeinformation-tizen-tests/lib/Tizen.dll differ
diff --git a/tct-runtimeinformation-tizen-tests/lib/Xamarin.Forms.Platform.Tizen.dll b/tct-runtimeinformation-tizen-tests/lib/Xamarin.Forms.Platform.Tizen.dll
deleted file mode 100644 (file)
index b91fc96..0000000
Binary files a/tct-runtimeinformation-tizen-tests/lib/Xamarin.Forms.Platform.Tizen.dll and /dev/null differ
diff --git a/tct-runtimeinformation-tizen-tests/lib/Xamarin.Forms.dll b/tct-runtimeinformation-tizen-tests/lib/Xamarin.Forms.dll
deleted file mode 100644 (file)
index 08c22be..0000000
Binary files a/tct-runtimeinformation-tizen-tests/lib/Xamarin.Forms.dll and /dev/null differ
diff --git a/tct-runtimeinformation-tizen-tests/org.test.tizen.newmodule.tpk b/tct-runtimeinformation-tizen-tests/org.test.tizen.newmodule.tpk
deleted file mode 100644 (file)
index 154bbd9..0000000
Binary files a/tct-runtimeinformation-tizen-tests/org.test.tizen.newmodule.tpk and /dev/null differ
diff --git a/tct-runtimeinformation-tizen-tests/org.test.tizen.runtimeinformation.tpk b/tct-runtimeinformation-tizen-tests/org.test.tizen.runtimeinformation.tpk
new file mode 100644 (file)
index 0000000..0072f04
Binary files /dev/null and b/tct-runtimeinformation-tizen-tests/org.test.tizen.runtimeinformation.tpk differ
old mode 100644 (file)
new mode 100755 (executable)
index fd860ed..85fa0b5
@@ -1,7 +1,27 @@
+# Naming conventions
+
+1) "TC application" refers to "org.test.tizen.application".
+2) "sample applications" refers to those whose name contains string "Sample".
+
 # purpose of those scripts
 
-1) "push.sh" - this script is made for pushing the TC runtimeinformation module and "install.sh", "run.sh" scripts to Tizen device. Run it in Ubuntu.
+1) "push.sh" - this script is made for pushing the TC application, the sample applications and "install.sh", "run.sh" scripts to Tizen device. Run it in Ubuntu.
+
+2) "install.sh" - this script is made for installing the sample applications in Tizen device. This script will be pushed to "/home/owner" directory of Tizen device. Manually run it.
+
+3) "run.sh" - this script is made for launching & relaunching TC application for Application API. This script will be pushed to "/home/owner" directory of Tizen device. Manually run it.
+
+# how to install your sample applications using those script
+
+1) Put your sample applications in the directory of the scripts.
 
-2) "install.sh" - this script is made for installing the test application in Tizen device. This script will be pushed to "/home/owner" directory of Tizen device. Manually run it.
+2) Add your sample application's name to "install.sh" script as below:
+       pkgcmd -u -n <your AppId>
+       pkgcmd -t tpk -i -p <your AppId>.tpk -q
+       app_launcher -l | grep <your AppId>
+       
+3) Add your sample application's name to "run.sh" script as below:
+       app_launcher -k <your AppId>
 
-3) "run.sh" - this script is made for launching & relaunching TC application for Network API. This script will be pushed to "/home/owner" directory of Tizen device. Manually run it.
+# the end
+-- nothing here---
diff --git a/tct-runtimeinformation-tizen-tests/res/Result/NewModule.xml b/tct-runtimeinformation-tizen-tests/res/Result/NewModule.xml
deleted file mode 100644 (file)
index ce4df63..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<?xml-stylesheet type="text/xsl" href="./style/testresult.xsl"?>
-<?xml-stylesheet type="text/xsl" href="testresult.xsl"?>
-<test_definition>
-  <environment build_id="" device_id="csharp_device" device_model="" device_name="N/A" host="" lite_version="" />
-  <summary test_plan_name="Empty test_plan_name">
-    <start_at>
-    </start_at>
-    <end_at>
-    </end_at>
-  </summary>
-  <suite category="" extension="" name="C#" set_debug_msg="N/A" type="js">
-    <set>
-      <capabilities>
-        <capability name="http://sample.cSharp.org/feature" />
-      </capabilities>
-      <testcase component="" execution_type="" id="TizenTest.NewModule.SampleTestFixture.myFirstAsyncTest_RETURN_VALUE" priority="" purpose="" onload_delay="" result="PASS">
-        <description>
-          <test_script_entry>
-          </test_script_entry>
-        </description>
-        <result_info>
-          <actual_result>PASS</actual_result>
-          <start>
-          </start>
-          <end>
-          </end>
-          <stdout>
-          </stdout>
-          <stderr>
-          </stderr>
-        </result_info>
-      </testcase>
-      <testcase component="" execution_type="" id="TizenTest.NewModule.SampleTestFixture.myFirstSyncTest_RETURN_VALUE" priority="" purpose="" onload_delay="" result="PASS">
-        <description>
-          <test_script_entry>
-          </test_script_entry>
-        </description>
-        <result_info>
-          <actual_result>PASS</actual_result>
-          <start>
-          </start>
-          <end>
-          </end>
-          <stdout>
-          </stdout>
-          <stderr>
-          </stderr>
-        </result_info>
-      </testcase>
-    </set>
-  </suite>
-</test_definition>
\ No newline at end of file
diff --git a/tct-runtimeinformation-tizen-tests/res/Result/System.xml b/tct-runtimeinformation-tizen-tests/res/Result/System.xml
new file mode 100644 (file)
index 0000000..e7f1950
--- /dev/null
@@ -0,0 +1,461 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="./style/testresult.xsl"?>
+<?xml-stylesheet type="text/xsl" href="testresult.xsl"?>
+<test_definition>
+  <environment build_id="" device_id="csharp_device" device_model="" device_name="N/A" host="" lite_version="" />
+  <summary test_plan_name="Empty test_plan_name">
+    <start_at>
+    </start_at>
+    <end_at>
+    </end_at>
+  </summary>
+  <suite category="" extension="" name="C#" set_debug_msg="N/A" type="js">
+    <set>
+      <capabilities>
+        <capability name="http://sample.cSharp.org/feature" />
+      </capabilities>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.GetStatus_ENUM_ALL" priority="" purpose="Get Status for all possible key values" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_Bluetooth" priority="" purpose="Return Value of Is&lt;T&gt; for Bluetooth Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_WifiHotspot" priority="" purpose="Return Value of Is&lt;T&gt; for WifiHotspot Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_BluetoothTethering" priority="" purpose="Return Value of Is&lt;T&gt; for BluetoothTethering Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_UsbTethering" priority="" purpose="Return Value of Is&lt;T&gt; for UsbTethering Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_LocationService" priority="" purpose="Return Value of Is&lt;T&gt; for LocationService Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_LocationNetworkPosition" priority="" purpose="Return Value of Is&lt;T&gt; for LocationNetworkPosition Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_PacketData" priority="" purpose="Return Value of Is&lt;T&gt; for PacketData Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_DataRoaming" priority="" purpose="Return Value of Is&lt;T&gt; for DataRoaming Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_Vibration" priority="" purpose="Return Value of Is&lt;T&gt; for Vibration Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_AudioJack" priority="" purpose="Return Value of Is&lt;T&gt; for AudioJack Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_BatteryIsCharging" priority="" purpose="Return Value of Is&lt;T&gt; for BatteryIsCharging Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_TvOut" priority="" purpose="Return Value of Is&lt;T&gt; for TvOut Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_Usb" priority="" purpose="Return Value of Is&lt;T&gt; for Usb Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_Charger" priority="" purpose="Return Value of Is&lt;T&gt; for Charger Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_AutoRotation" priority="" purpose="Return Value of Is&lt;T&gt; for AutoRotation Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_Gps" priority="" purpose="Return Value of Is&lt;T&gt; for Gps Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.Is_RETURN_VALUE_AudioJackConnector" priority="" purpose="Return Value of Is&lt;T&gt; for AudioJackConnector Key" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.BluetoothEnabled_CHECK_EVENT" priority="" purpose="Event Handler callback registering check for BluetoothEnabled" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.GetSystemMemoryInformation_TYPE_RETURN_VALUE" priority="" purpose="Return value type and sanity checking for GetSystemMemoryInformation" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.GetProcessMemoryInformation_TYPE_RETURN_VALUE" priority="" purpose="Return value type and sanity checking for GetProcessMemoryInformation" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.GetProcessCpuUsage_TYPE_RETURN_VALUE" priority="" purpose="Return value type and sanity checking for GetProcessCpuUsage" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.GetCpuUsage_TYPE_RETURN_VALUE" priority="" purpose="Return value type and sanity checking for GetCpuUsage" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.ProcessorCount_TYPE_VALUE" priority="" purpose="Value type and sanity checking for ProcessorCount" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.GetProcessorCurrentFrequency_TYPE_RETURN_VALUE" priority="" purpose="Return value type and sanity checking for GetProcessorCurrentFrequency" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+      <testcase component="" execution_type="" id="TizenTest.System.RuntimeInformationTest.GetProcessorMaxFrequency_TYPE_RETURN_VALUE" priority="" purpose="Return value type and sanity checking for GetProcessorMaxFrequency" onload_delay="" result="PASS">
+        <description>
+          <test_script_entry>
+          </test_script_entry>
+        </description>
+        <result_info>
+          <actual_result>PASS</actual_result>
+          <start>
+          </start>
+          <end>
+          </end>
+          <stdout>
+          </stdout>
+          <stderr>
+          </stderr>
+        </result_info>
+      </testcase>
+    </set>
+  </suite>
+</test_definition>
\ No newline at end of file
old mode 100644 (file)
new mode 100755 (executable)
index 2fda634..487bca0
-@charset "UTF-8";
-/* CSS Document */
-#testcasepage div,#testcasepage h1,#testcasepage p,#testcasepage table,#testcasepage tr,#testcasepage th,#testcasepage td
-       {
-       margin: 0;
-       padding: 0;
-       border: 0;
-       font-weight: inherit;
-       font-style: inherit;
-       font-size: 0.96em;
-       font-family: arial;
-       vertical-align: baseline;
-}
-
-#title td, #btc td{
-       margin: 0;
-       padding: 0;
-       border: 0;
-       font-weight: inherit;
-       font-style: inherit;
-       font-size: 0.96em;
-       font-family: arial;
-       vertical-align: baseline;
-}
-
-td.Ratio {
-       text-align: left;
-       font-weight: normal;
-       padding: 4px 10px 4px 5px;
-       vertical-align: middle;
-}
-
-th.Ratio {
-       width: 400px;
-}
-
-#testcasepage p {
-       text-align: left;
-}
-
-#suite_title {
-       text-align: left;
-}
-
-#btc {
-       text-align: right;
-}
-
-#btc table {
-       position: absolute;
-       right: 0px;
-       width: 600px;
-}
-
-#testcasepage table {
-       border-collapse: separate;
-       border-spacing: 0;
-       margin-bottom: 1.4em;
-       vertical-align: middle;
-}
-
-#testcasepage th,#testcasepage td {
-       text-align: left;
-       font-weight: normal;
-       padding: 4px 10px 4px 5px;
-       vertical-align: middle;
-}
-
-#cases table {
-       width: 101%;
-}
-
-#cases td {
-       border-left: 0px;
-       font-weight: normal;
-       border-bottom: 0px;
-}
-
-#suite_summary table {
-       width: 100%;
-}
-
-
-#overview table {
-       width: 101%;
-}
-
-#overview table, #overview td, #overview tr {
-       border-left: none;
-       border-bottom: none;
-       border-right: none;
-       vertical-align: top;
-}
-
-#overview td{
-       width: 50%;
-}
-
-#capability table {
-       width: 50%;
-}
-
-#fail_cases table {
-       width: 101%;
-}
-
-#title table {
-       width: 101%;
-}
-
-#device table {
-       width: 100%;
-}
-
-#summary table {
-       width: 100%;
-}
-
-#testcasepage th {
-       border-bottom: 1px solid #000;
-       background-color: #AAAAAA;
-       border-left: 1px solid #000;
-       border-top: 1px solid #000;
-       color: #000;
-       font-weight: bold;
-       vertical-align: bottom;
-}
-
-#summary th:last-child,#summary td:last-child, #device th:last-child,#device td:last-child, #suite_summary th:last-child,#suite_summary td:last-child,#cases th:last-child,#cases td:last-child,#capability th:last-child,#capability td:last-child {
-       border-right: 1px solid #000;
-}
-
-#testcasepage td {
-       font-weight: normal;
-}
-
-#summary td, #device td, #capability td, #suite_summary td, #cases td{
-       border-left: 1px solid;
-       font-weight: normal;
-       border-bottom: 1px solid;
-}
-
-#testcasepage td.yellow_rate {
-       background-color: #ffcc00;
-}
-
-#testcasepage td.green_rate {
-       background-color: #1E90FF;
-}
-
-#testcasepage td.dgreen_rate {
-       background-color: #339933;
-}
-
-#testcasepage td.red_rate {
-       background-color: #FF3333;
-}
-
-#testcasepage td.orange_rate {
-       background-color: #FFA500;
-}
-
-#testcasepage td.gray_rate {
-       background-color: #AAAAAA;
-}
-
-#title table,#title tr,#title td {
-       border-left: none;
-       border-bottom: none;
-       text-align: center;
-}
-
-#title td:last-child {
-       border-right: none;
-}
-
-#testcasepage h1 {
-       font-size: 2em;
-       font-family: Arial, sans-serif;
-       font-weight: bold;
-       line-height: 1;
-       color: #000;
-       margin-bottom: 0.75em;
-       padding-top: 0.25em;
-       font-weight: bold;
-}
-
-#goTopBtn {
-       right: 0px;
-       bottom: 0px;
-       position: fixed; +
-       position: absolute;
-       top: expression(parseInt(document.body.scrollTop)+document.body.clientHeight-40
-               );
-}
+@charset "UTF-8";\r
+/* CSS Document */\r
+#testcasepage div,#testcasepage h1,#testcasepage p,#testcasepage table,#testcasepage tr,#testcasepage th,#testcasepage td\r
+       {\r
+       margin: 0;\r
+       padding: 0;\r
+       border: 0;\r
+       font-weight: inherit;\r
+       font-style: inherit;\r
+       font-size: 0.96em;\r
+       font-family: arial;\r
+       vertical-align: baseline;\r
+}\r
+\r
+#title td, #btc td{\r
+       margin: 0;\r
+       padding: 0;\r
+       border: 0;\r
+       font-weight: inherit;\r
+       font-style: inherit;\r
+       font-size: 0.96em;\r
+       font-family: arial;\r
+       vertical-align: baseline;\r
+}\r
+\r
+td.Ratio {\r
+       text-align: left;\r
+       font-weight: normal;\r
+       padding: 4px 10px 4px 5px;\r
+       vertical-align: middle;\r
+}\r
+\r
+th.Ratio {\r
+       width: 400px;\r
+}\r
+\r
+#testcasepage p {\r
+       text-align: left;\r
+}\r
+\r
+#suite_title {\r
+       text-align: left;\r
+}\r
+\r
+#btc {\r
+       text-align: right;\r
+}\r
+\r
+#btc table {\r
+       position: absolute;\r
+       right: 0px;\r
+       width: 600px;\r
+}\r
+\r
+#testcasepage table {\r
+       border-collapse: separate;\r
+       border-spacing: 0;\r
+       margin-bottom: 1.4em;\r
+       vertical-align: middle;\r
+}\r
+\r
+#testcasepage th,#testcasepage td {\r
+       text-align: left;\r
+       font-weight: normal;\r
+       padding: 4px 10px 4px 5px;\r
+       vertical-align: middle;\r
+}\r
+\r
+#cases table {\r
+       width: 101%;\r
+}\r
+\r
+#cases td {\r
+       border-left: 0px;\r
+       font-weight: normal;\r
+       border-bottom: 0px;\r
+}\r
+\r
+#suite_summary table {\r
+       width: 100%;\r
+}\r
+\r
+\r
+#overview table {\r
+       width: 101%;\r
+}\r
+\r
+#overview table, #overview td, #overview tr {\r
+       border-left: none;\r
+       border-bottom: none;\r
+       border-right: none;\r
+       vertical-align: top;\r
+}\r
+\r
+#overview td{\r
+       width: 50%;\r
+}\r
+\r
+#capability table {\r
+       width: 50%;\r
+}\r
+\r
+#fail_cases table {\r
+       width: 101%;\r
+}\r
+\r
+#title table {\r
+       width: 101%;\r
+}\r
+\r
+#device table {\r
+       width: 100%;\r
+}\r
+\r
+#summary table {\r
+       width: 100%;\r
+}\r
+\r
+#testcasepage th {\r
+       border-bottom: 1px solid #000;\r
+       background-color: #AAAAAA;\r
+       border-left: 1px solid #000;\r
+       border-top: 1px solid #000;\r
+       color: #000;\r
+       font-weight: bold;\r
+       vertical-align: bottom;\r
+}\r
+\r
+#summary th:last-child,#summary td:last-child, #device th:last-child,#device td:last-child, #suite_summary th:last-child,#suite_summary td:last-child,#cases th:last-child,#cases td:last-child,#capability th:last-child,#capability td:last-child {\r
+       border-right: 1px solid #000;\r
+}\r
+\r
+#testcasepage td {\r
+       font-weight: normal;\r
+}\r
+\r
+#summary td, #device td, #capability td, #suite_summary td, #cases td{\r
+       border-left: 1px solid;\r
+       font-weight: normal;\r
+       border-bottom: 1px solid;\r
+}\r
+\r
+#testcasepage td.yellow_rate {\r
+       background-color: #ffcc00;\r
+}\r
+\r
+#testcasepage td.green_rate {\r
+       background-color: #1E90FF;\r
+}\r
+\r
+#testcasepage td.dgreen_rate {\r
+       background-color: #339933;\r
+}\r
+\r
+#testcasepage td.red_rate {\r
+       background-color: #FF3333;\r
+}\r
+\r
+#testcasepage td.orange_rate {\r
+       background-color: #FFA500;\r
+}\r
+\r
+#testcasepage td.gray_rate {\r
+       background-color: #AAAAAA;\r
+}\r
+\r
+#title table,#title tr,#title td {\r
+       border-left: none;\r
+       border-bottom: none;\r
+       text-align: center;\r
+}\r
+\r
+#title td:last-child {\r
+       border-right: none;\r
+}\r
+\r
+#testcasepage h1 {\r
+       font-size: 2em;\r
+       font-family: Arial, sans-serif;\r
+       font-weight: bold;\r
+       line-height: 1;\r
+       color: #000;\r
+       margin-bottom: 0.75em;\r
+       padding-top: 0.25em;\r
+       font-weight: bold;\r
+}\r
+\r
+#goTopBtn {\r
+       right: 0px;\r
+       bottom: 0px;\r
+       position: fixed; +\r
+       position: absolute;\r
+       top: expression(parseInt(document.body.scrollTop)+document.body.clientHeight-40\r
+               );\r
+}\r
index 02571f3..807d726 100644 (file)
@@ -8,9 +8,9 @@
     <start_at>2016-04-20_18_37_38</start_at>
     <end_at>2016-04-20_18_37_38</end_at>
   </summary>
-  <suite name="NewModule">
-    <total_case>2</total_case>
-    <pass_case>2</pass_case>
+  <suite name="System">
+    <total_case>26</total_case>
+    <pass_case>26</pass_case>
     <pass_rate>100</pass_rate>
     <fail_case>0</fail_case>
     <fail_rate>0</fail_rate>
old mode 100644 (file)
new mode 100755 (executable)
index c76b062..9c46f4e
@@ -1,2 +1,9 @@
+# uninstall sample applications
 pkgcmd -u -n org.test.tizen.runtimeinformation
+
+#install sample applications
 pkgcmd -t tpk -i -p org.test.tizen.runtimeinformation.tpk -q
+
+#list installed sample applications
+echo "Successful installed the following packages: "
+app_launcher -l | grep UIApplication
old mode 100644 (file)
new mode 100755 (executable)
index 6ce6bec..49bfbf0
@@ -1,4 +1,4 @@
 # pull result file
 sdb root on
-sdb pull /home/owner/share/RuntimeInformation/RuntimeInformation.xml Result/
-sdb pull /home/owner/share/RuntimeInformation/summary.xml Result/
+sdb pull /home/owner/share/System/System.xml Result/
+sdb pull /home/owner/share/System/summary.xml Result/
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index c03320b..2db171c
@@ -1,2 +1,4 @@
 # install & run TC application
+pkgcmd -u -n org.test.tizen.runtimeinformation
+pkgcmd -t tpk -i -p org.test.tizen.runtimeinformation.tpk -q
 app_launcher -s org.test.tizen.runtimeinformation
diff --git a/tct-runtimeinformation-tizen-tests/share/res/icon.png b/tct-runtimeinformation-tizen-tests/share/res/icon.png
deleted file mode 100644 (file)
index 9765b1b..0000000
Binary files a/tct-runtimeinformation-tizen-tests/share/res/icon.png and /dev/null differ
old mode 100644 (file)
new mode 100755 (executable)
index 6c94a4b..88b1a5d
@@ -1,48 +1,29 @@
-using System;
-using System.Threading.Tasks;
 using Tizen.Applications;
-using Xamarin.Forms;
-using Xamarin.Forms.Platform.Tizen;
-using TestFramework;
 
 namespace TestFramework {
-    public class App : Xamarin.Forms.Application
-    {
-        public App()
-        {
-             MainPage = new NavigationPage(new TestMainPage());
+    public class MyApplication : UIApplication {
+        protected override void OnCreate() {
+            Assert.Init();
+            TestManager manager = new TestManager();
+            manager.RunTestFromTCList();
         }
 
-        protected override void OnStart()
-        {
-            // Handle when your app starts
+        protected override void OnResume() {
+            LogUtils.write(LogUtils.DEBUG, LogUtils.INFO, "Resumed!");
         }
 
-        protected override void OnSleep()
-        {
-            // Handle when your app sleeps
+        protected override void OnPause() {
+            LogUtils.write(LogUtils.DEBUG, LogUtils.INFO, "Paused!");
         }
 
-        protected override void OnResume()
-        {
-            // Handle when your app resumes
+        protected override void OnTerminate() {
+            LogUtils.write(LogUtils.DEBUG, LogUtils.INFO, "Terminated!");
         }
     }
-
-    public class MyApp : FormsApplication
-    {
-        protected override void OnCreate()
-        {
-            base.OnCreate();
-            Forms.Init(this);
-            LoadApplication(new App());
-        }
-    }
-
     class Program {
         static void Main(string[] args) {
-            MyApp myApp = new MyApp();
-            myApp.Run(args);
+            MyApplication app = new MyApplication();
+            app.Run(args);
         }
     }
 }
diff --git a/tct-runtimeinformation-tizen-tests/src/TestMainPage.cs b/tct-runtimeinformation-tizen-tests/src/TestMainPage.cs
deleted file mode 100644 (file)
index 0fc8cca..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Xamarin.Forms;
-
-namespace TestFramework
-{
-    public class TestMainPage : ContentPage
-    {
-        TestManager manager;
-        Button runbutton;
-        Button rerunbutton;
-        Label label;
-
-       public void initialize(){
-           manager = new TestManager();
-            manager.TestExecutionDone += MyTestRunner_TestCaseDone;
-       }
-
-       public TestMainPage()
-        {
-           initialize();
-            Title = "C# Test Application";
-
-            runbutton = new Button
-            {
-                Text = "Run",
-                FontSize = 20,
-                Image = "cat.png",
-                HorizontalOptions = LayoutOptions.FillAndExpand,
-            };
-            runbutton.Clicked += OnRunButtonClicked;
-
-            rerunbutton = new Button
-            {
-                Text = "Rerun",
-                FontSize = 20,
-                Image = "cat.png",
-                HorizontalOptions = LayoutOptions.FillAndExpand
-            };
-            rerunbutton.Clicked += OnRerunButtonClicked;
-            rerunbutton.IsEnabled = false;
-
-            label = new Label
-            {
-                Text = "Test Pending",
-                Font = Font.SystemFontOfSize(NamedSize.Large),
-                HorizontalOptions = LayoutOptions.FillAndExpand,
-                VerticalOptions = LayoutOptions.CenterAndExpand
-            };
-
-            Content = new StackLayout
-            {
-                Children= {
-                    runbutton,
-                    rerunbutton,
-                    label
-                }            
-            };
-
-            Padding = new Thickness(5, Device.OnPlatform(20, 5, 5), 5, 5);
-        }
-
-        void OnRunButtonClicked(object sender, EventArgs e)
-        {
-            runbutton.IsEnabled = false;
-            label.Text = "Result Pending";
-            manager.RunTestFromTCList();
-        }
-
-        void OnRerunButtonClicked(object sender, EventArgs e)
-        {
-            manager.RerunTestFromTCList();
-        }
-
-        void MyTestRunner_TestCaseDone(object sender, TestExecutionDoneEventArgs e)
-        {
-            label.Text = "TOTAL : " + e.Total + ", " + "PASS : " + e.Pass + ", " + "FAIL : " + e.Fail + Environment.NewLine;
-            rerunbutton.IsEnabled = true;
-        }
-    }
-}
index 849cfa7..9e42538 100644 (file)
@@ -1,7 +1,11 @@
 using System;
+using System.Threading;
 using System.Threading.Tasks;
 using TestFramework;
 using Tizen.System;
+using Tizen;
+using System.Collections.Generic;
+using System.Diagnostics;
 
 namespace TizenTest.System {
     [TestFixture]
@@ -622,6 +626,114 @@ namespace TizenTest.System {
 
         [Test]
         [Category("P1")]
+        [Description("Return value type and sanity checking for GetProcessMemoryInformation")]
+        [Property("SPEC", "Tizen.System.RuntimeInformation.GetProcessMemoryInformation M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Tester, Sehaj Singh Kalra sehaj.kalra@samsung.com")]
+        public static void GetProcessMemoryInformation_TYPE_RETURN_VALUE()
+        {
+            try
+            {
+                IList<int> processlist = new List<int>();
+                           Process[] list = Process.GetProcesses();
+                           foreach (Process p in list) {
+                                   processlist.Add(p.Id);
+                           }
+                           Log.Info("TizenSehaj", "No.of System processes " + processlist.Count);
+
+                IDictionary<int, ProcessMemoryInformation> all_info = Tizen.System.RuntimeInformation.GetProcessMemoryInformation(processlist);
+                Log.Info("TizenSehaj", "API call made");
+
+                Assert.True((processlist.Count == all_info.Count), "Mismatch in number of pids given and results returned");
+                Log.Info("TizenSehaj", "Count assertion passed");
+
+                foreach (KeyValuePair<int, ProcessMemoryInformation> kvp in all_info)
+                {
+                    ProcessMemoryInformation info = kvp.Value;
+
+                    object vsz_val = info.Vsz;
+                    Assert.IsNotNull(vsz_val, "Virtual memory size is null");
+                    Assert.True((vsz_val is int), "Virtual memory size is not of type int");
+
+                    object rss_val = info.Rss;
+                    Assert.IsNotNull(rss_val, "Resident set size is null");
+                    Assert.True((rss_val is int), "Resident set size is not of type int");
+
+                    object pss_val = info.Pss;
+                    Assert.IsNotNull(pss_val, "Proportional set size is null");
+                    Assert.True((pss_val is int), "Proportional set size is not of type int");
+
+                    object shared_clean_val = info.SharedClean;
+                    Assert.IsNotNull(shared_clean_val, "Shared Clean is null");
+                    Assert.True((shared_clean_val is int), "Shared Clean is not of type int");
+
+                    object shared_dirty_val = info.SharedDirty;
+                    Assert.IsNotNull(shared_dirty_val, "Shared Dirty is null");
+                    Assert.True((shared_dirty_val is int), "Shared Dirty is not of type int");
+
+                    object private_clean_val = info.PrivateClean;
+                    Assert.IsNotNull(private_clean_val, "Private Clean is null");
+                    Assert.True((private_clean_val is int), "Private Clean is not of type int");
+
+                    object private_dirty_val = info.PrivateDirty;
+                    Assert.IsNotNull(private_dirty_val, "Private Dirty is null");
+                    Assert.True((private_dirty_val is int), "Private Dirty is not of type int");
+                }
+            }
+            catch (Exception e)
+            {
+                Assert.Fail();
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Return value type and sanity checking for GetProcessCpuUsage")]
+        [Property("SPEC", "Tizen.System.RuntimeInformation.GetProcessMemoryInformation M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Tester, Sehaj Singh Kalra sehaj.kalra@samsung.com")]
+        public static void GetProcessCpuUsage_TYPE_RETURN_VALUE()
+        {
+            try
+            {
+                IList<int> processlist = new List<int>();
+                           Process[] list = Process.GetProcesses();
+                           foreach (Process p in list) {
+                                   processlist.Add(p.Id);
+                           }
+                           Log.Info("TizenSehaj", "No.of System processes " + processlist.Count);
+
+                IDictionary<int, ProcessCpuUsage> all_info = Tizen.System.RuntimeInformation.GetProcessCpuUsage(processlist);
+                Log.Info("TizenSehaj", "API call made");
+
+                Assert.True((processlist.Count == all_info.Count), "Mismatch in number of pids given and results returned");
+                Log.Info("TizenSehaj", "Count assertion passed");
+
+                foreach (KeyValuePair<int, ProcessCpuUsage> kvp in all_info)
+                {
+                    ProcessCpuUsage info = kvp.Value;
+
+                    object utime_val = info.UTime;
+                    Assert.IsNotNull(utime_val, "Amount of time that this process has been scheduled in user mode is null");
+                    Assert.True((utime_val is uint), "Amount of time that this process has been scheduled in user mode is not of type int");
+                    Assert.True(((uint)utime_val >= 0), "Amount of time that this process has been scheduled in user mode is less than zero");
+
+                    object stime_val = info.STime;
+                    Assert.IsNotNull((uint)stime_val, "Amount of time that this process has been scheduled in kernel mode is null");
+                    Assert.True((stime_val is uint), "Amount of time that this process has been scheduled in kernel mode is not of type int");
+                    Assert.True(((uint)stime_val >= 0), "Amount of time that this process has been scheduled in kernel mode is less than zero");
+                }
+            }
+            catch (Exception e)
+            {
+                Assert.Fail();
+            }
+        }
+
+        [Test]
+        [Category("P1")]
         [Description("Return value type and sanity checking for GetCpuUsage")]
         [Property("SPEC", "Tizen.System.RuntimeInformation.GetCpuUsage M")]
         [Property("SPEC_URL", "-")]
@@ -657,6 +769,28 @@ namespace TizenTest.System {
 
         [Test]
         [Category("P1")]
+        [Description("Value type and sanity checking for ProcessorCount")]
+        [Property("SPEC", "Tizen.System.RuntimeInformation.ProcessorCount M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Tester, Sehaj Singh Kalra sehaj.kalra@samsung.com")]
+        public static void ProcessorCount_TYPE_VALUE()
+        {
+            try
+            {
+                object processor_count = Tizen.System.RuntimeInformation.ProcessorCount;
+
+                Assert.IsNotNull(processor_count, "Processor current frequency is null");
+                Assert.True((processor_count is int), "Processor current frequency is not of type int");
+            }
+            catch (Exception e)
+            {
+                Assert.Fail();
+            }
+        }
+
+        [Test]
+        [Category("P1")]
         [Description("Return value type and sanity checking for GetProcessorCurrentFrequency")]
         [Property("SPEC", "Tizen.System.RuntimeInformation.GetProcessorCurrentFrequency M")]
         [Property("SPEC_URL", "-")]
diff --git a/tct-runtimeinformation-tizen-tests/tct-runtimeinformation-tizen-tests.csproj b/tct-runtimeinformation-tizen-tests/tct-runtimeinformation-tizen-tests.csproj
new file mode 100644 (file)
index 0000000..b4e2187
--- /dev/null
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{FDAA3944-FCCE-4319-B93E-61FF53137EDB}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>tct_system_runtimeinformation_tizen_tests</RootNamespace>
+    <AssemblyName>tct-runtimeinformation-tizen-tests</AssemblyName>
+    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+    <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
+    <IsCodedUITest>False</IsCodedUITest>
+    <TestProjectType>UnitTest</TestProjectType>
+    <TargetFrameworkProfile />
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="TestFramework">
+      <HintPath>lib\TestFramework.dll</HintPath>
+    </Reference>
+    <Reference Include="Tizen">
+      <HintPath>lib\Tizen.dll</HintPath>
+    </Reference>
+    <Reference Include="Tizen.Applications">
+      <HintPath>lib\Tizen.Applications.dll</HintPath>
+    </Reference>
+    <Reference Include="Tizen.Internals">
+      <HintPath>lib\Tizen.Internals.dll</HintPath>
+    </Reference>
+    <Reference Include="Tizen.System">
+      <HintPath>lib\Tizen.System.dll</HintPath>
+    </Reference>
+  </ItemGroup>
+  <Choose>
+    <When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
+      <ItemGroup>
+        <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+      </ItemGroup>
+    </When>
+    <Otherwise>
+      <ItemGroup>
+        <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
+      </ItemGroup>
+    </Otherwise>
+  </Choose>
+  <ItemGroup>
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="src\Program.cs" />
+    <Compile Include="src\TestCase\TSAccelerometer.cs" />
+    <Compile Include="src\TestCase\TSGravitySensor.cs" />
+    <Compile Include="src\TestCase\TSLinearAccelerationSensor.cs" />
+    <Compile Include="src\TestCase\TSProximitySensor.cs" />
+  </ItemGroup>
+  <ItemGroup />
+  <Choose>
+    <When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
+      <ItemGroup>
+        <Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+          <Private>False</Private>
+        </Reference>
+        <Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+          <Private>False</Private>
+        </Reference>
+        <Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+          <Private>False</Private>
+        </Reference>
+        <Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+          <Private>False</Private>
+        </Reference>
+      </ItemGroup>
+    </When>
+  </Choose>
+  <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
old mode 100644 (file)
new mode 100755 (executable)
index 58a52d5..dca5c69
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="org.test.tizen.runtimeinformation" version="1.0.0">
-    <ui-application appid="org.test.tizen.runtimeinformation" exec="tct-newmodule-tizen-tests" type="capp" multiple="false" taskmanage="true" nodisplay="false">
+    <ui-application appid="org.test.tizen.runtimeinformation" exec="tct-runtimeinformation-tizen-tests" type="capp" multiple="false" taskmanage="true" nodisplay="false">
         <icon>icon.png</icon>
-        <label>tct-newmodule-tizen-tests</label>
+        <label>tct-runtimeinformation-tizen-tests</label>
     </ui-application>
     <privileges>
-        <!-- If you need any privileges, add here. -->
+        <privilege>http://tizen.org/privilege/systemmonitor</privilege>
     </privileges>
 </manifest>