Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
244 changes: 23 additions & 221 deletions framework/fileStore/MediaValidationUtility.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
setWebKitSocketPort(webinspect_port_lightning)
# Setting the pre-requisites for media test. Launching the webkit instance via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# disabling proc validation
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.animation_app_id,MediaValidationVariables.animation_app_download_url)
if pre_requisite_status == "SUCCESS":
Expand All @@ -142,7 +141,7 @@
# Getting the complete test app URL
animation_test_url = getTestURL(appURL,appArguments)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.animation_app_id)
if "SUCCESS" in launch_status:
Expand Down Expand Up @@ -176,8 +175,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requisites for media test.Removing app url from webkit instance and
# moving next high z-order app to front (residentApp if its active)
# Setting the post-requisites for media test. Terminating the bolt app.
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.animation_app_id)
if post_requisite_status == "SUCCESS":
print("Post conditions for the test are set successfully\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
setWebKitSocketPort(webinspect_port_lightning)
# Setting the pre-requites for media test. Launching the wekit instance via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# disabling proc validation
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.animation_app_id,MediaValidationVariables.animation_app_download_url)
config_status = "SUCCESS"
Expand Down Expand Up @@ -153,7 +152,7 @@
# Getting the complete test app URL
animation_test_url = getTestURL(appURL,appArguments)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.animation_app_id)
if "SUCCESS" in launch_status:
Expand Down Expand Up @@ -188,8 +187,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requites for media test.Removing app utl from webkit instance and
# moving next high z-order app to front (residentApp if its active)
# Setting the post-requisites for media test. Terminating the bolt app.
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.animation_app_id)
if post_requisite_status == "SUCCESS":
print("Post conditions for the test are set successfully\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
setWebKitSocketPort(webinspect_port_lightning)
# Setting the pre-requites for media test. Launching the wekit instance via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# disabling proc validation
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.multi_animation_app_id,MediaValidationVariables.multi_animation_app_download_url)
config_status = "SUCCESS"
Expand Down Expand Up @@ -155,7 +154,7 @@
# Getting the complete test app URL
animation_test_url = getTestURL(appURL,appArguments)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.multi_animation_app_id)
if "SUCCESS" in launch_status:
Expand Down Expand Up @@ -258,8 +257,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requites for media test.Removing app url from webkit instance and
# moving next high z-order app to front (residentApp if its active)
# Setting the post-requisites for media test. Terminating the bolt app.
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.multi_animation_app_id)
if post_requisite_status == "SUCCESS":
print("Post conditions for the test are set successfully\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
setWebKitSocketPort(webinspect_port_lightning)
# Setting the pre-requites for media test. Launching the wekit insatnce via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# disabling proc validation
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# getting the details for proc validation from config file
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.object_animation_app_id,MediaValidationVariables.object_animation_app_download_url)
config_status = "SUCCESS"
conf_file,result = getDeviceConfigFile(obj.realpath)
Expand Down Expand Up @@ -156,7 +155,7 @@
# Getting the complete test app URL
animation_test_url = getTestURL(appURL,appArguments)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.object_animation_app_id)
if "SUCCESS" in launch_status:
Expand Down Expand Up @@ -191,8 +190,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requites for media test.Removing app url from webkit instance and
# moving next high z-order app to front (residentApp if its active)
# Setting the post-requisites for media test. Terminating the bolt app.
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.object_animation_app_id)
if post_requisite_status == "SUCCESS":
print("Post conditions for the test are set successfully\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@
print("\nCheck Pre conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the pre-requites for media test. Launching the wekit instance via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# disabling proc validation
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.object_animation_app_id,MediaValidationVariables.object_animation_app_download_url)

Expand Down Expand Up @@ -184,7 +183,7 @@
# Getting the complete test app URL
animation_test_url = getTestURL(appURL,appArguments)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.object_animation_app_id)
if "SUCCESS" in launch_status:
Expand Down Expand Up @@ -241,7 +240,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requites for media test.Removing app url from webkit instance and
# Setting the post-requisites for media test.Removing app url from webkit instance and
# moving next high z-order app to front (residentApp if its active)
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.object_animation_app_id)
if post_requisite_status == "SUCCESS":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
setWebKitSocketPort(webinspect_port_lightning)
# Setting the pre-requites for media test. Launching the wekit instance via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# disabling proc validation
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.object_animation_app_id,MediaValidationVariables.object_animation_app_download_url)
config_status = "SUCCESS"
Expand Down Expand Up @@ -155,7 +154,7 @@
# Getting the complete test app URL
animation_test_url = getTestURL(appURL,appArguments)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.object_animation_app_id)
if "SUCCESS" in launch_status:
Expand Down Expand Up @@ -190,8 +189,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requites for media test.Removing app url from webkit instance and
# moving next high z-order app to front (residentApp if its active)
# Setting the post-requisites for media test. Terminating the bolt app.
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.object_animation_app_id)
if post_requisite_status == "SUCCESS":
print("Post conditions for the test are set successfully\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
setWebKitSocketPort(webinspect_port_lightning)
# Setting the pre-requites for media test. Launching the wekit instance via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# disabling proc validation
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.animation_app_id,MediaValidationVariables.animation_app_download_url)
if pre_requisite_status == "SUCCESS":
Expand Down Expand Up @@ -147,7 +146,7 @@
# Getting the complete test app URL
animation_test_url = getTestURL(appURL,appArguments)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.animation_app_id)
if "SUCCESS" in launch_status:
Expand All @@ -171,8 +170,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requites for media test.Removing app url from webkit instance and
# moving next high z-order app to front (residentApp if its active)
# Setting the post-requisites for media test. Terminating the bolt app.
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.animation_app_id)
if post_requisite_status == "SUCCESS":
print("Post conditions for the test are set successfully\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
setWebKitSocketPort(webinspect_port_lightning)
# Setting the pre-requites for media test. Launching the wekit instance via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# disabling proc validation
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.animation_app_id,MediaValidationVariables.animation_app_download_url)
if pre_requisite_status == "SUCCESS":
Expand All @@ -145,7 +144,7 @@
# Getting the complete test app URL
animation_test_url = getTestURL(appURL,appArguments)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.animation_app_id)
if "SUCCESS" in launch_status:
Expand All @@ -169,8 +168,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requites for media test.Removing app url from webkit instance and
# moving next high z-order app to front (residentApp if its active)
# Setting the post-requisites for media test. Terminating the bolt app.
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.animation_app_id)
if post_requisite_status == "SUCCESS":
print("Post conditions for the test are set successfully\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
socketConnectionEnableDisable(False);
# Setting the pre-requites for media test. Launching the wekit instance via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# disabling proc validation
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.animation_app_id,MediaValidationVariables.animation_app_download_url)
config_status = "SUCCESS"
Expand All @@ -146,7 +145,7 @@
animation_test_url = MediaValidationVariables.sample_animation_test_url
print(animation_test_url)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.animation_app_id)
if "SUCCESS" in launch_status:
Expand Down Expand Up @@ -192,8 +191,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requites for media test.Removing app url from webkit instance and
# moving next high z-order app to front (residentApp if its active)
# Setting the post-requisites for media test. Terminating the bolt app.
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.animation_app_id)
if post_requisite_status == "SUCCESS":
print("Post conditions for the test are set successfully\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@
tdkTestObj = obj.createTestStep('rdkv_media_pre_requisites');
tdkTestObj.executeTestCase(expectedResult);
setWebKitSocketPort(webinspect_port_lightning)
# Setting the pre-requites for media test. Launching the wekit instance via RDKShell and
# moving it to the front, openning a socket connection to the webkit inspect page and
# Setting the pre-requisites for media test. Launching the required test app via AppManager and
# disabling proc validation
pre_requisite_status,webkit_console_socket,validation_dict = setMediaTestPreRequisites(obj,MediaValidationVariables.object_animation_app_id,MediaValidationVariables.object_animation_app_download_url)
config_status = "SUCCESS"
Expand Down Expand Up @@ -156,7 +155,7 @@
# Getting the complete test app URL
animation_test_url = getTestURL(appURL,appArguments)

# Setting the animation test url in webkit instance using RDKShell
# Setting the animation test url in PersistentStore and launching the animation test app using AppManager
setPS_value(animation_test_url)
launch_status = launchApp(obj,MediaValidationVariables.object_animation_app_id)
if "SUCCESS" in launch_status:
Expand Down Expand Up @@ -191,8 +190,7 @@
print("\nSet post conditions...")
tdkTestObj = obj.createTestStep('rdkv_media_post_requisites');
tdkTestObj.executeTestCase(expectedResult);
# Setting the post-requites for media test.Removing app url from webkit instance and
# moving next high z-order app to front (residentApp if its active)
# Setting the post-requisites for media test. Terminating the bolt app.
post_requisite_status = setMediaTestPostRequisites(MediaValidationVariables.object_animation_app_id)
if post_requisite_status == "SUCCESS":
print("Post conditions for the test are set successfully\n")
Expand Down
Loading
Loading