Commit 77d82c63 authored by wwalkowski's avatar wwalkowski

No commit message

No commit message
parent 81fcdfa9
"C:\Program Files (x86)\Sikuli 32bit\sikuli-script.cmd" -r "C:\Subversion\OCDLNA\CVP2 Resources\Sikuli Projects\DLNA CTT DMR.sikuli"
#java -jar /cygdrive/c/Program\ Files\ \(x86\)/Sikuli\ 32bit/sikuli-script.jar \
# /cygdrive/c/Users/wwalkowski/Documents/Sikuli\ Projects/DLNA\ CTT.sikuli
# java -jar %SIKULI_HOME%\sikuli-script.jar path-to-your-script\yourScript.sikuli
#/cygdrive/c/Program\ Files\ \(x86\)/Sikuli\ 32bit/sikuli-script.cmd -r "/cygdrive/c/Users/wwalkowski/Documents/Sikuli\ Projects/DLNA\ CTT.sikuli"
#/cygdrive/c/Program\ Files\ \(x86\)/Sikuli\ 32bit/sikuli-script.cmd -r "C:\Users\wwalkowski\Documents\Sikuli Projects\DLNA CTT.sikuli"
#/cygdrive/c/Program\ Files\ \(x86\)/Sikuli\ 32bit/sikuli-script.cmd -r /cygdrive/c/Users/wwalkowski/Documents/Sikuli\ Projects/DLNA\ CTT.sikuli
#"/cygdrive/c/Program\ Files\ \(x86\)/Sikuli\ 32bit/sikuli-script.cmd" -r /cygdrive/c/Users/wwalkowski/Documents/Sikuli\ Projects/DLNA\ CTT.sikuli
"C:\Program Files (x86)\Sikuli 32bit\sikuli-script.cmd" -r "C:\Users\wwalkowski\Documents\Sikuli Projects\DLNA CTT.sikuli"
# "C:\Program Files (x86)\Sikuli 32bit\sikuli-script.cmd" -r "C:\Users\wwalkowski\Documents\Sikuli Projects\DLNA CTT.sikuli"
#
# Copy media files to DLNA CTT directory
#
cp /cygdrive/c/Subversion/OCDLNA/CVP2\ Resources/CTT\ Test\ Media/* \
/cygdrive/c/Program\ Files\ \(x86\)/Digital\ Living\ Network\ Alliance/DLNA\ CTT\ v1.5\ \(2011\ Guidelines\)/TestMedia
#
# Copy media files to DLNA CTT directory
#
cp /cygdrive/c/Subversion/OCDLNA/CVP2\ Resources/DLNA\ CTT\ Device\ Profiles/* \
/cygdrive/c/Program\ Files\ \(x86\)/Digital\ Living\ Network\ Alliance/DLNA\ CTT\ v1.5\ \(2011\ Guidelines\)/CttData/DeviceProfiles
#
# Copy profiles to UPnP CTT directories
#
cp /cygdrive/c/Subversion/OCDLNA/CVP2\ Resources/UPnP\ CTT\ Profiles/av1_default.xml \
/cygdrive/c/Program\ Files\ \(x86\)/UPnP\ Certification\ Test\ Tool\ 2.0/Configuration/AV1/Profiles/default.xml
cp /cygdrive/c/Subversion/OCDLNA/CVP2\ Resources/UPnP\ CTT\ Profiles/av2_default.xml \
/cygdrive/c/Program\ Files\ \(x86\)/UPnP\ Certification\ Test\ Tool\ 2.0/Configuration/AV2/Profiles/default.xml
cp /cygdrive/c/Subversion/OCDLNA/CVP2\ Resources/UPnP\ CTT\ Profiles/av3_default.xml \
/cygdrive/c/Program\ Files\ \(x86\)/UPnP\ Certification\ Test\ Tool\ 2.0/Configuration/AV3/Profiles/default.xml
cp /cygdrive/c/Subversion/OCDLNA/CVP2\ Resources/UPnP\ CTT\ Profiles/uda_default.xml \
/cygdrive/c/Program\ Files\ \(x86\)/UPnP\ Certification\ Test\ Tool\ 2.0/Configuration/UDA/Profiles/default.xml
#
# Copy configuration for MCVT
#
cp /cygdrive/c/Subversion/OCDLNA/CVP2\ Resources/MCVT\ Configuration/mcvtConfiguration.config \
/cygdrive/c/Program\ Files\ \(x86\)/Digital\ Living\ Network\ Alliance/DLNA\ MCVT\ \(2011\ Guidelines\)
This diff is collapsed.
......@@ -2,7 +2,7 @@
<DeviceProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<WizardTitle>CTT Device Profile Wizard</WizardTitle>
<Version>1.6</Version>
<DeviceProfileName>Darshak_DMP</DeviceProfileName>
<DeviceProfileName>CVP2_DMP_Profile</DeviceProfileName>
<DeviceClass>DMP</DeviceClass>
<Region Japanese="false" NorthAmerican="true" Korean="false" European="false" />
<CvpProfileCategory>
......
......@@ -2,7 +2,7 @@
<DeviceProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<WizardTitle>CTT Device Profile Wizard</WizardTitle>
<Version>1.6</Version>
<DeviceProfileName>Darshak_DMR</DeviceProfileName>
<DeviceProfileName>CVP2_DMR_Profile</DeviceProfileName>
<DeviceClass>DMR</DeviceClass>
<Region Japanese="false" NorthAmerican="true" Korean="false" European="false" />
<CvpProfileCategory>
......
......@@ -2,7 +2,7 @@
<DeviceProfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<WizardTitle>CTT Device Profile Wizard</WizardTitle>
<Version>1.6</Version>
<DeviceProfileName>Darshak_DMS</DeviceProfileName>
<DeviceProfileName>CVP2_DMS_Profile</DeviceProfileName>
<DeviceClass>DMS</DeviceClass>
<Region Japanese="false" NorthAmerican="true" Korean="false" European="false" />
<CvpProfileCategory>
......
<html>
<head>
<style type="text/css">
.sikuli-code {
font-size: 20px;
font-family: "Osaka-mono", Monospace;
line-height: 1.5em;
display:table-cell;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
width: 99%; /* remove horizontal scroll-bar when viewing in IE7 */
}
.sikuli-code img {
vertical-align: middle;
margin: 2px;
border: 1px solid #ccc;
padding: 2px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-moz-box-shadow: 1px 1px 1px gray;
-webkit-box-shadow: 1px 1px 2px gray;
}
.kw {
color: blue;
}
.skw {
color: rgb(63, 127, 127);
}
.str {
color: rgb(128, 0, 0);
}
.dig {
color: rgb(128, 64, 0);
}
.cmt {
color: rgb(200, 0, 200);
}
h2 {
display: inline;
font-weight: normal;
}
.info {
border-bottom: 1px solid #ddd;
padding-bottom: 5px;
margin-bottom: 20px;
display: none;
}
a {
color: #9D2900;
}
body {
font-family: "Trebuchet MS", Arial, Sans-Serif;
}
</style>
</head>
<body>
<div class="info">
<h2>UPnP CTT DMR.sikuli\UPnP CTT DMR.sikuli</h2> <a href="UPnP CTT DMR.sikuli\UPnP CTT DMR.zip">(Download this script)</a>
</div>
<pre class="sikuli-code">
<span class="kw">import</span> Utils
Utils.killUpnp()
<span class="skw">click</span>(<img src="1370889762943.png" />)
upnpCTT = App(<span class="str">"C:\\Program Files (x86)\\UPnP Certification Test Tool 2.0\\UCTT2.0.exe"</span>)
upnpCTT.open()
<span class="cmt">#upnpCTT.focus()
</span>
<span class="skw">wait</span>(<img src="1370893031803.png" />, <span class="dig">60</span>)
<span class="skw">click</span>(Pattern(<img src="1370890871743.png" />).targetOffset(-<span class="dig">27</span>,-<span class="dig">8</span>))
<span class="skw">click</span>(<img src="1370890947846.png" />)
<span class="skw">wait</span>(<img src="1370890985247.png" />, <span class="dig">60</span>)
<span class="skw">click</span>(<img src="1370891003527.png" />)
<span class="skw">wait</span>(<img src="1370893278200.png" />, <span class="dig">300</span>)
<span class="skw">click</span>(<img src="1370893302079.png" />)
<span class="skw">wait</span>(<img src="1370893481822.png" />, <span class="dig">300</span>)
<span class="skw">click</span>(<img src="1370893504109.png" />)
</pre>
</body>
</html>
import Utils
Utils.killUpnp()
click("1370889762943.png")
upnpCTT = App("C:\\Program Files (x86)\\UPnP Certification Test Tool 2.0\\UCTT2.0.exe")
upnpCTT.open()
#upnpCTT.focus()
wait("1370893031803.png", 60)
click(Pattern("1370890871743.png").targetOffset(-27,-8))
click("1370890947846.png")
wait("1370890985247.png", 60)
click("1370891003527.png")
wait("1370893278200.png", 300)
click("1370893302079.png")
wait("1370893481822.png", 300)
click("1370893504109.png")
......@@ -78,7 +78,19 @@
<span class="kw">return</span>
<span class="kw">def</span> killTaskManager():
<span class="kw">if</span> exists(<img src="1370889835334.png" />):
<span class="skw">rightClick</span>(<img src="1370889859566.png" />)
<span class="kw">if</span> exists(<img src="1370889919007.png" />):
<span class="skw">click</span>(<img src="1370889957997.png" />)
<span class="kw">return</span>
<span class="kw">def</span> launchTaskManager():
killTaskManager()
<span class="skw">click</span>(<img src="1370638730338.png" />)
textBox = <span class="skw">find</span>(<img src="1370638755314.png" />)
......@@ -110,6 +122,24 @@
closeTaskManager()
<span class="kw">return</span>
<span class="kw">def</span> killUpnp():
launchTaskManager()
<span class="cmt"># Arrange process names in descending order so we can find
</span> <span class="cmt"># the UPnP CTT
</span> <span class="kw">if</span> exists(Pattern(<img src="1370889407360.png" />).exact()):
<span class="skw">click</span>(Pattern(<img src="1370889425024.png" />).exact())
<span class="kw">if</span> exists(Pattern(<img src="1370889534033.png" />).similar(<span class="dig">0.94</span>)):
<span class="skw">rightClick</span>(<img src="1370889551889.png" />)
<span class="skw">click</span>(<img src="1370639665222.png" />)
<span class="skw">click</span>(<img src="1370639089876.png" />)
closeTaskManager()
<span class="kw">return</span>
</pre>
</body>
......
......@@ -6,7 +6,19 @@ def killAllTools():
return
def killTaskManager():
if exists("1370889835334.png"):
rightClick("1370889859566.png")
if exists("1370889919007.png"):
click("1370889957997.png")
return
def launchTaskManager():
killTaskManager()
click("1370638730338.png")
textBox = find("1370638755314.png")
......@@ -40,3 +52,21 @@ def killCtt():
return
def killUpnp():
launchTaskManager()
# Arrange process names in descending order so we can find
# the UPnP CTT
if exists(Pattern("1370889407360.png").exact()):
click(Pattern("1370889425024.png").exact())
if exists(Pattern("1370889534033.png").similar(0.94)):
rightClick("1370889551889.png")
click("1370639665222.png")
click("1370639089876.png")
closeTaskManager()
return
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment