cryptoservices/filebasedcertificateandkeystores/test/tcertapps/scripts/script1.txt
DEADHEAD: Superseded by 0d3a50e36d4b.
// platsec tests
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-1
//! @SYMTestCaseDesc Initialise - not a test
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Initialise - not a test</actionname>
<actiontype>InitManager</actiontype>
<actionbody>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-2
//! @SYMTestCaseDesc Clearing existing applications - not a test
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Clearing existing applications - not a test</actionname>
<actiontype>ClearAllApps</actiontype>
<actionbody>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-3
//! @SYMTestCaseDesc Add applications - adding five apps with UID 24601, 642828, 12345, 10, 12
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Add applications - adding five apps with UID 24601, 642828, 12345, 10, 12</actionname>
<actiontype>AddApp</actiontype>
<actionbody>
<uid>24601</uid><appname>My application 1</appname>
<uid>642828</uid><appname>My application 2</appname>
<uid>12345</uid><appname>My application 3</appname>
<uid>10</uid><appname>My application 4</appname>
<uid>12</uid><appname>My application 5</appname>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-4
//! @SYMTestCaseDesc Getting the application list
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Getting the application list</actionname>
<actiontype>GetApplications</actiontype>
<actionbody>
<uid>24601</uid><appname>My application 1</appname>
<uid>642828</uid><appname>My application 2</appname>
<uid>12345</uid><appname>My application 3</appname>
<uid>10</uid><appname>My application 4</appname>
<uid>12</uid><appname>My application 5</appname>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-5
//! @SYMTestCaseDesc Destroy the manager
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Destroy the manager</actionname>
<actiontype>DestroyManager</actiontype>
<actionbody>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-6
//! @SYMTestCaseDesc Sleep 5 seconds
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Sleep 5 seconds</actionname>
<actiontype>sleep</actiontype>
<actionbody>
<seconds>5</seconds>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-7
//! @SYMTestCaseDesc Initialise
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Initialise</actionname>
<actiontype>InitManager</actiontype>
<actionbody>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-8
//! @SYMTestCaseDesc Getting the application list
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Getting the application list</actionname>
<actiontype>GetApplications</actiontype>
<actionbody>
<uid>24601</uid><appname>My application 1</appname>
<uid>642828</uid><appname>My application 2</appname>
<uid>12345</uid><appname>My application 3</appname>
<uid>10</uid><appname>My application 4</appname>
<uid>12</uid><appname>My application 5</appname>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-9
//! @SYMTestCaseDesc Adding an application with the UID already existing
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrAlreadyExists
<action>
<actionname>Adding an application with the UID already existing</actionname>
<actiontype>AddApp</actiontype>
<actionbody>
<uid>24601</uid><appname>Additional app</appname>
</actionbody>
<actionresult>
<return>KErrAlreadyExists</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-10
//! @SYMTestCaseDesc Remove application UID 24601
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Remove application UID 24601</actionname>
<actiontype>RemoveApp</actiontype>
<actionbody>
<uid>24601</uid>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-11
//! @SYMTestCaseDesc Remove app which does not exist UID 24601
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNotFound
<action>
<actionname>Remove app which does not exist UID 24601</actionname>
<actiontype>RemoveApp</actiontype>
<actionbody>
<uid>24601</uid>
</actionbody>
<actionresult>
<return>KErrNotFound</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-12
//! @SYMTestCaseDesc Get Count
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Get Count</actionname>
<actiontype>AppCount</actiontype>
<actionbody>
<count>4</count>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-13
//! @SYMTestCaseDesc Get application 10
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Get application 10</actionname>
<actiontype>GetApp</actiontype>
<actionbody>
<uid>10</uid>
<appname>My application 4</appname>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-14
//! @SYMTestCaseDesc Get application which does not exist
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNotFound
<action>
<actionname>Get application which does not exist</actionname>
<actiontype>GetApp</actiontype>
<actionbody>
<uid>15</uid>
<appname>My application 4</appname>
</actionbody>
<actionresult>
<return>KErrNotFound</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-15
//! @SYMTestCaseDesc Getting the application list
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Getting the application list</actionname>
<actiontype>GetApplications</actiontype>
<actionbody>
<uid>642828</uid><appname>My application 2</appname>
<uid>12345</uid><appname>My application 3</appname>
<uid>10</uid><appname>My application 4</appname>
<uid>12</uid><appname>My application 5</appname>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-16
//! @SYMTestCaseDesc Delete applications
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Delete applications</actionname>
<actiontype>ClearAllApps</actiontype>
<actionbody>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>
//! @file
//! @SYMTestCaseID Sec-tcertapps-script1-17
//! @SYMTestCaseDesc Destroy the manager
//! @SYMREQ REQ3466
//! @SYMTestCasePriority High
//! @SYMTestExpectedResults KErrNone
<action>
<actionname>Destroy the manager</actionname>
<actiontype>DestroyManager</actiontype>
<actionbody>
</actionbody>
<actionresult>
<return>KErrNone</return>
</actionresult>
</action>