This commit is contained in:
Akbar Yahya
2022-11-21 16:30:31 +08:00
commit e0d4d8040c
3326 changed files with 683000 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("MainQuest_301",baseClass)
UAutoLuaTestCase.TestFixture = "MainQuest_301"
local self = UAutoLuaTestCase
self.Category="任务系统"
self.Description = "主线任务301_正常跑"
self.Order = 500
self.GotoMengDe = {
Order=1,
Category="任务系统",
Description = "主线任务",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:FinishAllNoob())
end )
}
return self

View File

@@ -0,0 +1,277 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("Quest301",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "Quest301"
self.Category = "任务系统" --自行修改分类
self.Description = "任务301" --自行修改用例描述
self.Order = 501
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "看cutscene", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2205.637 , 208.8428 , -5058.042 )
local initForward = CS.UnityEngine.Vector3( 0.6312173 , 1 , 0.775606 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 19")
yield_return(self.base:WaitFrames(18))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.194749 , 0.1745344 , 3.380088 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 23")
yield_return(self.base:WaitFrames(3))
print("frame index: 36")
yield_return(self.base:WaitFrames(12))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.194749 , 0.1745344 , 3.380088 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 41")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2205.637 , 208.6216 , -5058.042 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.194748 , 0.1745344 , 3.36376 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 74")
yield_return(self.base:WaitFrames(32))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/MapInfo/BtnToggleQuest"))
print("frame index: 77")
yield_return(self.base:WaitFrames(2))
print("frame index: 102")
yield_return(self.base:WaitFrames(24))
yield_return(self.base:MouseClick( "Canvas/Dialogs/InLevelQuestDialog/GrpQuestBook/GrpQuestDetail/Action/TrackerBtn/Content"))
print("frame index: 105")
yield_return(self.base:WaitFrames(2))
print("frame index: 127")
yield_return(self.base:WaitFrames(21))
yield_return(self.base:MouseClick( "Canvas/Dialogs/InLevelQuestDialog/GrpQuestBook/GrpQuestDetail/Action/TrackerBtn/Content"))
print("frame index: 131")
yield_return(self.base:WaitFrames(3))
print("frame index: 190")
yield_return(self.base:WaitFrames(58))
print("frame index: 195")
yield_return(self.base:WaitFrames(4))
print("frame index: 205")
yield_return(self.base:WaitFrames(9))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.194699 , 0.1745344 , 3.380088 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 230")
yield_return(self.base:WaitFrames(24))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Sprint/ActionBtn_Sprint(Clone)"))
print("frame index: 234")
yield_return(self.base:WaitFrames(3))
print("frame index: 386")
yield_return(self.base:WaitFrames(151))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Sprint/ActionBtn_Sprint(Clone)"))
print("frame index: 391")
yield_return(self.base:WaitFrames(4))
print("frame index: 541")
yield_return(self.base:WaitFrames(149))
endPos = CS.UnityEngine.Vector3( 2242.918 , 208.9904 , -5001.518 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.195218 , 0.1134464 , 3.361171 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 552")
yield_return(self.base:WaitFrames(10))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.195218 , 0.1134464 , 3.361171 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 560")
yield_return(self.base:WaitFrames(7))
endPos = CS.UnityEngine.Vector3( 2242.918 , 208.9904 , -5001.518 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.195218 , 0.1134464 , 3.361171 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 639")
yield_return(self.base:WaitFrames(78))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.195218 , 0.1134464 , 3.361171 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 643")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2242.918 , 208.9904 , -5001.518 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.195218 , 0.1134464 , 3.361171 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 2611")
yield_return(self.base:WaitFrames(1967))
print("frame index: 2613")
yield_return(self.base:WaitFrames(1))
print("frame index: 2621")
yield_return(self.base:WaitFrames(7))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.891517 , 0.1134464 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 2623")
yield_return(self.base:WaitFrames(1))
endPos = CS.UnityEngine.Vector3( 2243.362 , 209.0041 , -5000.889 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.891323 , 0.1134464 , 3.339703 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 2624")
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "对话温迪", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2250.099 , 209.9998 , -4995.555 )
local initForward = CS.UnityEngine.Vector3( 0.5902336 , 1 , 0.8072325 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 20")
yield_return(self.base:WaitFrames(19))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.214197 , 0.215078 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 24")
yield_return(self.base:WaitFrames(3))
print("frame index: 41")
yield_return(self.base:WaitFrames(16))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.214197 , 0.215078 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 75")
yield_return(self.base:WaitFrames(33))
endPos = CS.UnityEngine.Vector3( 2253.475 , 208.8021 , -4991.053 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.214045 , 0.1192116 , 6 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 116")
yield_return(self.base:WaitFrames(40))
print("frame index: 172")
yield_return(self.base:WaitFrames(55))
print("frame index: 190")
yield_return(self.base:WaitFrames(17))
yield_return(self.base:SelectDialog( "温迪" ))
print("frame index: 192")
yield_return(self.base:WaitFrames(10))
print("frame index: 246")
yield_return(self.base:WaitFrames(53))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 250")
yield_return(self.base:WaitFrames(5))
end)
}
UAutoLuaTestCase.Step_3 = {
Order = 3, --执行顺序
Type = CaseType.MonoTest,
Description = "对话老板", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2255.367 , 209.8002 , -4994.492 )
local initForward = CS.UnityEngine.Vector3( 0.1839879 , 1 , -0.9829286 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 41")
yield_return(self.base:WaitFrames(40))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.751397 , 0.1134464 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 44")
yield_return(self.base:WaitFrames(2))
print("frame index: 65")
yield_return(self.base:WaitFrames(20))
yield_return(self.base:SelectDialog( "老板" ))
print("frame index: 69")
yield_return(self.base:WaitFrames(10))
print("frame index: 114")
yield_return(self.base:WaitFrames(44))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 117")
yield_return(self.base:WaitFrames(5))
end)
}
UAutoLuaTestCase.Step_4 = {
Order = 4, --执行顺序
Type = CaseType.MonoTest,
Description = "对话安柏", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2248.989 , 209.8002 , -4989.938 )
local initForward = CS.UnityEngine.Vector3( -0.7849898 , 1 , 0.6195089 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 61")
yield_return(self.base:WaitFrames(60))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.069973 , 0.3750407 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:SelectDialog( "安柏" ))
print("frame index: 65")
yield_return(self.base:WaitFrames(3))
print("frame index: 138")
yield_return(self.base:WaitFrames(72))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 140")
yield_return(self.base:WaitFrames(5))
end)
}
return self

View File

@@ -0,0 +1,57 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestBase_302",baseClass)
local self = UAutoLuaTestCase
self.StartPosition = CS.UnityEngine.Vector3(2599.48,236.61,-5631.36)
self.Position30201 = CS.UnityEngine.Vector3(2594.82, 241.44, -5565.67)
function self:Step_30201()
print "Step_30201"
yield_return(self.base:TelePort(self.StartPosition))
yield_return(self.base:MoveToPositionUntilCutSceneDisAppear(self.Position30201))
end
function self:Step_30202()
print "Step_30202"
yield_return(self.base:WaitFoundNearByEntityByName("NPC_SP013", function(result) self.npc=result end,60))
print(self.npc)
yield_return(self.base:MoveToEntity(self.npc))
yield_return(self:WaitTalk(0))
yield_return(self:WaitCutScene(true))
end
function self:Step_30203()
print "Step_30203"
yield_return(self.base:WaitFoundNearByEntityByName("NPC_SP013", function(result) self.npc=result end,60))
print(self.npc)
yield_return(self.base:MoveToEntity(self.npc))
end
function self:Step_30204(endPosition)
print "Step_30204"
self.endPosition = endPosition or CS.UnityEngine.Vector3(2566.26, 214.68, -5423.05);
print(self.endPosition)
yield_return(self.base:WaitFoundNearByEntityByName("NPC_SP013", function(result) self.entity=result end))
local testObj = self
yield_return(self:FllowEntity(self.entity, self.endPosition))
end
function self:Step_30205()
print "Step_30205"
yield_return(self:WaitTalk(0))
end
function self:Step_30206()
print "Step_30206"
yield_return(self:WaitCutScene(true))
end
function self:Step_30207()
print "Step_30207"
end
return self

View File

@@ -0,0 +1,38 @@
local baseClass = require('UAuto/TestCases/Quest/302/QuestBase_302')
local UAutoLuaTestCase = class("QuestBranch_302",baseClass)
local self = UAutoLuaTestCase
UAutoLuaTestCase.TestFixture = self.__className
self.Description="派蒙的指引,去过蒙得城的分支情况"
self.Category = "任务系统"
self.SetUp = {
Order=0.1,
Category="任务系统",
Description = "初始化clear all",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self.base:SetUpVariables())
yield_return(self.base:RunGM("clear all",true,true))
end)
}
self.Branch30207 = {
Order=1,
Category="任务系统",
Type = CaseType.MonoTest,
Description = "去蒙得城后再跑引导任务",
Action = UAutoCoroutine(function()
self.questID = 302
yield_return(self:Step_30201())
--yield_return(self:Step_30202())
--yield_return(self:Step_30203())
yield_return(self:Step_30204())
yield_return(self:TriggerMengDeTask())
yield_return(self.base:TelePort(self.endPosition))
yield_return(self:Step_30203())
yield_return(self:Step_30205())
yield_return(self:Step_30206())
--self:CheckQuestPromtOnMiniMap()
end)
}
return self

View File

@@ -0,0 +1,56 @@
local baseClass = require('UAuto/TestCases/Quest/302/QuestBase_302')
local UAutoLuaTestCase = class("QuestRewind_302",baseClass)
local self = UAutoLuaTestCase
UAutoLuaTestCase.TestFixture = self.__className
self.Description="302派蒙的指引各步骤失败回退"
self.Category = "任务系统"
self.SetUp = {
Order=0.1,
Category="任务系统",
Description="初始化",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self.base:RunGM("clear all",true,true))
end)
}
self.ReWind30202 = {
Order=1,
Category="任务系统",
Description="过cutscene后退出重进接任务",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_30201())
yield_return(self:Reconnect("Daily"))
yield_return(self:Step_30202())
end)
}
self.ReWind30203 = {
Order=2,
Category="任务系统",
Type = CaseType.MonoTest,
Description="跟随到女神像边退出再进",
Action = UAutoCoroutine(function()
yield_return(self:Step_30203())
yield_return(self:Reconnect())
--yield_return(self:Step_30202())
end)
}
self.ReWind30204 = {
Order=3,
Category="任务系统",
Type = CaseType.MonoTest,
Description="完成任务前退出再进再完成",
Action = UAutoCoroutine(function()
yield_return(self:Step_30203())
--self.endPosition= CS.UnityEngine.Vector3(518.4478, 212.5616, -259.0941);
--yield_return(self:Step_30204(self.endPosition))
yield_return(self:Reconnect())
yield_return(self:Step_30202())
end)
}
return self

View File

@@ -0,0 +1,698 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("Quest304",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "Quest304"
self.Category = "任务系统" --自行修改分类
self.Description = "任务304" --自行修改用例描述
self.Order = 504
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "对话安柏1", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2245.536 , 209.9995 , -4997.524 )
local initForward = CS.UnityEngine.Vector3( 0.4731002 , 1 , 0.8810086 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 21")
yield_return(self.base:WaitFrames(20))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.910177 , 0.1679439 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 25")
yield_return(self.base:WaitFrames(3))
print("frame index: 61")
yield_return(self.base:WaitFrames(35))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.910177 , 0.1679439 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 111")
yield_return(self.base:WaitFrames(49))
endPos = CS.UnityEngine.Vector3( 2248.275 , 208.8401 , -4989.824 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.911499 , 0.1134464 , 6 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 103")
yield_return(self.base:WaitFrames(54))
yield_return(self.base:SelectDialog( "安柏" ))
print("frame index: 107")
yield_return(self.base:WaitFrames(3))
print("frame index: 162")
yield_return(self.base:WaitFrames(54))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 164")
yield_return(self.base:WaitFrames(1))
print("frame index: 178")
yield_return(self.base:WaitFrames(13))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 180")
yield_return(self.base:WaitFrames(1))
print("frame index: 193")
yield_return(self.base:WaitFrames(12))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 196")
yield_return(self.base:WaitFrames(2))
print("frame index: 201")
yield_return(self.base:WaitFrames(4))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 205")
yield_return(self.base:WaitFrames(3))
print("frame index: 211")
yield_return(self.base:WaitFrames(5))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 215")
yield_return(self.base:WaitFrames(3))
print("frame index: 227")
yield_return(self.base:WaitFrames(11))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 230")
yield_return(self.base:WaitFrames(2))
print("frame index: 236")
yield_return(self.base:WaitFrames(5))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 238")
yield_return(self.base:WaitFrames(1))
print("frame index: 243")
yield_return(self.base:WaitFrames(4))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 245")
yield_return(self.base:WaitFrames(1))
print("frame index: 250")
yield_return(self.base:WaitFrames(4))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 254")
yield_return(self.base:WaitFrames(3))
print("frame index: 257")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 261")
yield_return(self.base:WaitFrames(3))
print("frame index: 277")
yield_return(self.base:WaitFrames(15))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 280")
yield_return(self.base:WaitFrames(2))
print("frame index: 315")
yield_return(self.base:WaitFrames(34))
print("frame index: 355")
yield_return(self.base:WaitFrames(39))
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "对话安柏2", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2292.35 , 214.8004 , -4971.106 )
local initForward = CS.UnityEngine.Vector3( 0.8261219 , 1 , -0.5634918 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 33")
yield_return(self.base:WaitFrames(32))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.550949 , 0.254606 , 3.433024 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 36")
yield_return(self.base:WaitFrames(2))
print("frame index: 72")
yield_return(self.base:WaitFrames(35))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.550966 , 0.254606 , 3.433024 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 82")
yield_return(self.base:WaitFrames(9))
endPos = CS.UnityEngine.Vector3( 2292.35 , 214.6884 , -4971.106 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.551073 , 0.254606 , 3.435564 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 173")
yield_return(self.base:WaitFrames(90))
yield_return(self.base:SelectDialog( "安柏" ))
print("frame index: 183")
yield_return(self.base:WaitFrames(9))
print("frame index: 241")
yield_return(self.base:WaitFrames(57))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 244")
yield_return(self.base:WaitFrames(2))
print("frame index: 259")
yield_return(self.base:WaitFrames(14))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 262")
yield_return(self.base:WaitFrames(2))
print("frame index: 266")
yield_return(self.base:WaitFrames(3))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 270")
yield_return(self.base:WaitFrames(3))
print("frame index: 274")
yield_return(self.base:WaitFrames(3))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 278")
yield_return(self.base:WaitFrames(3))
print("frame index: 284")
yield_return(self.base:WaitFrames(5))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 288")
yield_return(self.base:WaitFrames(3))
print("frame index: 296")
yield_return(self.base:WaitFrames(7))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 299")
yield_return(self.base:WaitFrames(2))
print("frame index: 314")
yield_return(self.base:WaitFrames(14))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 317")
yield_return(self.base:WaitFrames(2))
print("frame index: 603")
yield_return(self.base:WaitFrames(285))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 606")
yield_return(self.base:WaitFrames(2))
print("frame index: 628")
yield_return(self.base:WaitFrames(21))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 631")
yield_return(self.base:WaitFrames(2))
print("frame index: 634")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 637")
yield_return(self.base:WaitFrames(2))
print("frame index: 639")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 642")
yield_return(self.base:WaitFrames(2))
print("frame index: 645")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 648")
yield_return(self.base:WaitFrames(2))
print("frame index: 651")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 654")
yield_return(self.base:WaitFrames(2))
print("frame index: 657")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 661")
yield_return(self.base:WaitFrames(3))
print("frame index: 663")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 666")
yield_return(self.base:WaitFrames(2))
print("frame index: 669")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 672")
yield_return(self.base:WaitFrames(2))
print("frame index: 703")
yield_return(self.base:WaitFrames(30))
print("frame index: 706")
yield_return(self.base:WaitFrames(2))
print("frame index: 750")
yield_return(self.base:WaitFrames(43))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.559205 , 0.254606 , 3.433024 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 754")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2292.35 , 214.3019 , -4971.104 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.559262 , 0.254606 , 3.405632 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 814")
yield_return(self.base:WaitFrames(59))
print("frame index: 861")
yield_return(self.base:WaitFrames(46))
end)
}
UAutoLuaTestCase.Step_3 = {
Order = 3, --执行顺序
Type = CaseType.MonoTest,
Description = "射第一个琥珀", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2295.492 , 228.6711 , -4988.263 )
local initForward = CS.UnityEngine.Vector3( 0.9987456 , 1 , 0.05007464 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 27")
yield_return(self.base:WaitFrames(26))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.913282 , 0.07789946 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 30")
yield_return(self.base:WaitFrames(2))
print("frame index: 43")
yield_return(self.base:WaitFrames(12))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.913282 , 0.07789946 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/AM/ActionBtn_AM(Clone)/Focus/Btn"))
print("frame index: 44")
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.418006 , 0.2354707 , 1.733009 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 97")
yield_return(self.base:WaitFrames(52))
print("frame index: 156")
yield_return(self.base:WaitFrames(58))
local deltaAngle = CS.UnityEngine.Vector3( 350.9084 , -7.829422 , 5.529444E-11)
yield_return(self.base:RotateFocusCamera(deltaAngle))
print("frame index: 171")
yield_return(self.base:WaitFrames(14))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill1/ActionBtn_Skill1(Clone)", true ))
print("frame index: 202")
yield_return(self.base:WaitFrames(30))
self.base:MouseUp()
print("frame index: 279")
yield_return(self.base:WaitFrames(76))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill1/ActionBtn_Skill1(Clone)", true ))
print("frame index: 348")
yield_return(self.base:WaitFrames(68))
self.base:MouseUp()
print("frame index: 395")
yield_return(self.base:WaitFrames(46))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/AM/ActionBtn_AM(Clone)/Normal/Btn"))
print("frame index: 403")
yield_return(self.base:WaitFrames(7))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.52719 , 0.1171488 , 2.17992 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 434")
yield_return(self.base:WaitFrames(30))
print("frame index: 436")
yield_return(self.base:WaitFrames(1))
end)
}
UAutoLuaTestCase.Step_4 = {
Order = 4, --执行顺序
Type = CaseType.MonoTest,
Description = "射第二个琥珀", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2309.198 , 232.1451 , -4937.904 )
local initForward = CS.UnityEngine.Vector3( -0.6026234 , 1 , -0.7980256 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 24")
yield_return(self.base:WaitFrames(23))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9336449 , 0.1265453 , 4.367935 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 27")
yield_return(self.base:WaitFrames(2))
print("frame index: 39")
yield_return(self.base:WaitFrames(11))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9336449 , 0.1265453 , 4.367935 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 44")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2309.198 , 231.7785 , -4937.904 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9335123 , 0.1265453 , 4.309283 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 81")
yield_return(self.base:WaitFrames(36))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9334233 , 0.1265453 , 4.367935 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/AM/ActionBtn_AM(Clone)/Focus/Btn"))
print("frame index: 84")
yield_return(self.base:WaitFrames(2))
print("frame index: 111")
yield_return(self.base:WaitFrames(26))
print("frame index: 227")
yield_return(self.base:WaitFrames(115))
local deltaAngle = CS.UnityEngine.Vector3( 349.1631 , 0.6672821 , -2.577821E-09)
yield_return(self.base:RotateFocusCamera(deltaAngle))
print("frame index: 253")
yield_return(self.base:WaitFrames(25))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill1/ActionBtn_Skill1(Clone)", true ))
print("frame index: 295")
yield_return(self.base:WaitFrames(41))
self.base:MouseUp()
print("frame index: 369")
yield_return(self.base:WaitFrames(73))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill1/ActionBtn_Skill1(Clone)", true ))
print("frame index: 425")
yield_return(self.base:WaitFrames(55))
self.base:MouseUp()
print("frame index: 494")
yield_return(self.base:WaitFrames(68))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/AM/ActionBtn_AM(Clone)/Normal/Btn"))
print("frame index: 497")
yield_return(self.base:WaitFrames(2))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.351325 , 0.1272771 , 1.830327 )
yield_return(self.base:RotateByCameraData(cameraData))
end)
}
UAutoLuaTestCase.Step_5 = {
Order = 5, --执行顺序
Type = CaseType.MonoTest,
Description = "射第三个琥珀", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2317.462 , 256.9068 , -4884.739 )
local initForward = CS.UnityEngine.Vector3( 0.08713711 , 1 , -0.9961964 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 21")
yield_return(self.base:WaitFrames(20))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.744267 , -0.1502232 , 4.356638 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 24")
yield_return(self.base:WaitFrames(2))
print("frame index: 40")
yield_return(self.base:WaitFrames(15))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.744267 , -0.1502232 , 4.356638 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 44")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2317.572 , 259.2667 , -4884.746 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.754069 , -0.1502232 , 4.356638 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 98")
yield_return(self.base:WaitFrames(53))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.754578 , -0.1502232 , 4.356638 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/AM/ActionBtn_AM(Clone)/Focus/Btn"))
print("frame index: 101")
yield_return(self.base:WaitFrames(2))
print("frame index: 142")
yield_return(self.base:WaitFrames(40))
print("frame index: 209")
yield_return(self.base:WaitFrames(66))
local deltaAngle = CS.UnityEngine.Vector3( -14.78961 , 3.119324 , 2.555073E-06)
yield_return(self.base:RotateFocusCamera(deltaAngle))
print("frame index: 240")
yield_return(self.base:WaitFrames(30))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill1/ActionBtn_Skill1(Clone)", true ))
print("frame index: 301")
yield_return(self.base:WaitFrames(60))
self.base:MouseUp()
print("frame index: 358")
yield_return(self.base:WaitFrames(56))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill1/ActionBtn_Skill1(Clone)", true ))
print("frame index: 409")
yield_return(self.base:WaitFrames(50))
self.base:MouseUp()
print("frame index: 475")
yield_return(self.base:WaitFrames(65))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/AM/ActionBtn_AM(Clone)/Normal/Btn"))
print("frame index: 480")
yield_return(self.base:WaitFrames(4))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.021846 , -0.03549826 , 2.029295 )
yield_return(self.base:RotateByCameraData(cameraData))
end)
}
UAutoLuaTestCase.Step_6 = {
Order = 6, --执行顺序
Type = CaseType.MonoTest,
Description = "射第四个琥珀", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2365.92 , 259.2918 , -4875.804 )
local initForward = CS.UnityEngine.Vector3( -0.8183736 , 1 , 0.5746864 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 21")
yield_return(self.base:WaitFrames(20))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6803856 , 0.02459093 , 4.356638 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 26")
yield_return(self.base:WaitFrames(4))
print("frame index: 51")
yield_return(self.base:WaitFrames(24))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6803856 , 0.02459093 , 4.356638 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 54")
yield_return(self.base:WaitFrames(2))
endPos = CS.UnityEngine.Vector3( 2365.925 , 258.3844 , -4875.831 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6796041 , 0.02459093 , 4.334667 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 92")
yield_return(self.base:WaitFrames(37))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6781259 , 0.02459093 , 4.356638 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/AM/ActionBtn_AM(Clone)/Focus/Btn"))
print("frame index: 95")
yield_return(self.base:WaitFrames(2))
print("frame index: 110")
yield_return(self.base:WaitFrames(14))
print("frame index: 184")
yield_return(self.base:WaitFrames(73))
local deltaAngle = CS.UnityEngine.Vector3( 351.0128 , -0.1358032 , 2.153258E-07)
yield_return(self.base:RotateFocusCamera(deltaAngle))
print("frame index: 212")
yield_return(self.base:WaitFrames(27))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill1/ActionBtn_Skill1(Clone)", true ))
print("frame index: 268")
yield_return(self.base:WaitFrames(55))
self.base:MouseUp()
print("frame index: 339")
yield_return(self.base:WaitFrames(70))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill1/ActionBtn_Skill1(Clone)", true ))
print("frame index: 410")
yield_return(self.base:WaitFrames(70))
self.base:MouseUp()
print("frame index: 459")
yield_return(self.base:WaitFrames(48))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/AM/ActionBtn_AM(Clone)/Normal/Btn"))
print("frame index: 462")
yield_return(self.base:WaitFrames(2))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.2451099 , 0.08170295 , 1.810966 )
yield_return(self.base:RotateByCameraData(cameraData))
end)
}
UAutoLuaTestCase.Step_7 = {
Order = 7, --执行顺序
Type = CaseType.MonoTest,
Description = "对话安柏3", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2358.758 , 249.6509 , -4864.181 )
local initForward = CS.UnityEngine.Vector3( 0.4357832 , 1 , 0.9000517 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 22")
yield_return(self.base:WaitFrames(21))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.131948 , 0.2415342 , 4.467103 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 26")
yield_return(self.base:WaitFrames(3))
print("frame index: 43")
yield_return(self.base:WaitFrames(16))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.131948 , 0.2415342 , 4.467103 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 48")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2358.758 , 249.4109 , -4864.181 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.13197 , 0.2415342 , 4.442454 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 145")
yield_return(self.base:WaitFrames(96))
yield_return(self.base:SelectDialog( "安柏" ))
print("frame index: 150")
yield_return(self.base:WaitFrames(4))
print("frame index: 201")
yield_return(self.base:WaitFrames(50))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 205")
yield_return(self.base:WaitFrames(3))
print("frame index: 220")
yield_return(self.base:WaitFrames(14))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 224")
yield_return(self.base:WaitFrames(3))
print("frame index: 237")
yield_return(self.base:WaitFrames(12))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 241")
yield_return(self.base:WaitFrames(3))
end)
}
return self

View File

@@ -0,0 +1,975 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("Quest305",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "Quest305"
self.Category = "任务系统" --自行修改分类
self.Description = "任务305" --自行修改用例描述
self.Order = 505
UAutoLuaTestCase.Step305_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "对话安柏", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2355.105 , 249.6509 , -4869.049 )
local initForward = CS.UnityEngine.Vector3( 0.5262355 , 1 , 0.8503389 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 14")
yield_return(self.base:WaitFrames(13))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.203797 , 0.2061161 , 3.635302 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 18")
yield_return(self.base:WaitFrames(3))
print("frame index: 31")
yield_return(self.base:WaitFrames(12))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.203797 , 0.2061161 , 3.635302 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 75")
yield_return(self.base:WaitFrames(43))
endPos = CS.UnityEngine.Vector3( 2359.371 , 248.6507 , -4863.232 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.203896 , 0.1152906 , 4.644284 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 132")
yield_return(self.base:WaitFrames(56))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.2041 , 0.1134464 , 3.570441 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(90,false)) --S
print("frame index: 136")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2359.326 , 248.6507 , -4862.728 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.182872 , 0.1134464 , 3.345642 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 177")
yield_return(self.base:WaitFrames(40))
yield_return(self.base:SelectDialog( "安柏" ))
print("frame index: 180")
yield_return(self.base:WaitFrames(2))
print("frame index: 202")
yield_return(self.base:WaitFrames(21))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 206")
yield_return(self.base:WaitFrames(3))
print("frame index: 235")
yield_return(self.base:WaitFrames(28))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 238")
yield_return(self.base:WaitFrames(2))
print("frame index: 501")
yield_return(self.base:WaitFrames(262))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 504")
yield_return(self.base:WaitFrames(2))
print("frame index: 517")
yield_return(self.base:WaitFrames(12))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 520")
yield_return(self.base:WaitFrames(2))
print("frame index: 527")
yield_return(self.base:WaitFrames(6))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 530")
yield_return(self.base:WaitFrames(2))
print("frame index: 540")
yield_return(self.base:WaitFrames(9))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 544")
yield_return(self.base:WaitFrames(3))
print("frame index: 585")
yield_return(self.base:WaitFrames(40))
print("frame index: 589")
yield_return(self.base:WaitFrames(3))
end)
}
UAutoLuaTestCase.Step305_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "杀怪救温蒂", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2388.939 , 267.1653 , -4830.039 )
local initForward = CS.UnityEngine.Vector3( -0.7753943 , 1 , -0.6314775 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 17")
yield_return(self.base:WaitFrames(16))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.6867651 , 0.161708 , 3.912969 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 23")
yield_return(self.base:WaitFrames(5))
print("frame index: 76")
yield_return(self.base:WaitFrames(52))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.6866976 , 0.161708 , 3.912969 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
yield_return(self.base:RunGM("KILL MONSTER ALL"))
print("frame index: 80")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2388.941 , 266.6819 , -4830.041 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.6869463 , 0.161708 , 3.912969 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 188")
yield_return(self.base:WaitFrames(107))
print("frame index: 192")
yield_return(self.base:WaitFrames(3))
print("frame index: 207")
yield_return(self.base:WaitFrames(14))
print("frame index: 211")
yield_return(self.base:WaitFrames(3))
print("frame index: 232")
yield_return(self.base:WaitFrames(20))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.6871328 , 0.161708 , 3.912969 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 266")
yield_return(self.base:WaitFrames(33))
endPos = CS.UnityEngine.Vector3( 2384.415 , 266.5822 , -4833.765 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.6876414 , 0.1160436 , 5.552809 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 362")
yield_return(self.base:WaitFrames(95))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.6877026 , 0.1134464 , 3.57051 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 367")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2383.976 , 266.6346 , -4834.125 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.6876831 , 0.1134464 , 3.570482 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 376")
yield_return(self.base:WaitFrames(8))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 379")
yield_return(self.base:WaitFrames(2))
print("frame index: 391")
yield_return(self.base:WaitFrames(11))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 394")
yield_return(self.base:WaitFrames(2))
print("frame index: 398")
yield_return(self.base:WaitFrames(3))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 401")
yield_return(self.base:WaitFrames(2))
print("frame index: 404")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 405")
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.6878365 , 0.1134464 , 3.570442 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 407")
yield_return(self.base:WaitFrames(1))
endPos = CS.UnityEngine.Vector3( 2383.976 , 266.6346 , -4834.125 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.8203059 , 0.1134464 , 3.570442 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 409")
yield_return(self.base:WaitFrames(1))
print("frame index: 411")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 414")
yield_return(self.base:WaitFrames(2))
print("frame index: 424")
yield_return(self.base:WaitFrames(9))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 427")
yield_return(self.base:WaitFrames(2))
print("frame index: 437")
yield_return(self.base:WaitFrames(9))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 438")
print("frame index: 449")
yield_return(self.base:WaitFrames(10))
print("frame index: 453")
yield_return(self.base:WaitFrames(3))
print("frame index: 456")
yield_return(self.base:WaitFrames(2))
print("frame index: 459")
yield_return(self.base:WaitFrames(2))
print("frame index: 479")
yield_return(self.base:WaitFrames(19))
print("frame index: 481")
yield_return(self.base:WaitFrames(1))
endPos = CS.UnityEngine.Vector3( 2383.901 , 266.6648 , -4834.046 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.8141491 , 0.1134464 , 3.561504 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 497")
yield_return(self.base:WaitFrames(15))
print("frame index: 502")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2384.322 , 266.6284 , -4833.685 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.8069068 , 0.1134464 , 3.47451 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 520")
yield_return(self.base:WaitFrames(17))
print("frame index: 522")
yield_return(self.base:WaitFrames(1))
endPos = CS.UnityEngine.Vector3( 2384.737 , 266.4568 , -4834.155 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.8613407 , 0.1134464 , 3.645389 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 539")
yield_return(self.base:WaitFrames(16))
print("frame index: 542")
yield_return(self.base:WaitFrames(2))
endPos = CS.UnityEngine.Vector3( 2384.405 , 266.449 , -4834.662 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.8755977 , 0.1134464 , 3.639126 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 653")
yield_return(self.base:WaitFrames(110))
print("frame index: 666")
yield_return(self.base:WaitFrames(12))
endPos = CS.UnityEngine.Vector3( 2384.37 , 266.3077 , -4835.583 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9095678 , 0.1134464 , 3.748701 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 686")
yield_return(self.base:WaitFrames(19))
print("frame index: 695")
yield_return(self.base:WaitFrames(8))
endPos = CS.UnityEngine.Vector3( 2384.395 , 266.2985 , -4835.605 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9255137 , 0.1134464 , 3.570441 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 712")
yield_return(self.base:WaitFrames(16))
print("frame index: 719")
yield_return(self.base:WaitFrames(6))
endPos = CS.UnityEngine.Vector3( 2384.395 , 266.2985 , -4835.605 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9264966 , 0.1134464 , 3.570441 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 724")
yield_return(self.base:WaitFrames(4))
print("frame index: 728")
yield_return(self.base:WaitFrames(3))
yield_return(self.base:MoveByAngle(225,false)) --AW
endPos = CS.UnityEngine.Vector3( 2384.395 , 266.2985 , -4835.605 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9266072 , 0.1134464 , 3.570441 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 734")
yield_return(self.base:WaitFrames(5))
endPos = CS.UnityEngine.Vector3( 2384.395 , 266.2985 , -4835.605 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9266072 , 0.1134464 , 3.570441 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 751")
yield_return(self.base:WaitFrames(16))
print("frame index: 757")
yield_return(self.base:WaitFrames(5))
endPos = CS.UnityEngine.Vector3( 2384.395 , 266.2985 , -4835.605 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9266072 , 0.1134464 , 3.570441 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 771")
yield_return(self.base:WaitFrames(13))
print("frame index: 775")
yield_return(self.base:WaitFrames(3))
yield_return(self.base:MoveByAngle(45,false)) --DS
print("frame index: 776")
print("frame index: 780")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2384.395 , 266.2985 , -4835.605 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9266072 , 0.1134464 , 3.570441 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 787")
yield_return(self.base:WaitFrames(6))
print("frame index: 790")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MoveByAngle(45,false)) --DS
print("frame index: 795")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2384.395 , 266.2985 , -4835.605 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.9266072 , 0.1134464 , 3.570441 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 814")
yield_return(self.base:WaitFrames(18))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 818")
yield_return(self.base:WaitFrames(3))
print("frame index: 825")
yield_return(self.base:WaitFrames(6))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 828")
yield_return(self.base:WaitFrames(2))
print("frame index: 831")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 834")
yield_return(self.base:WaitFrames(2))
print("frame index: 836")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 839")
yield_return(self.base:WaitFrames(2))
print("frame index: 841")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 844")
yield_return(self.base:WaitFrames(2))
print("frame index: 846")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 850")
yield_return(self.base:WaitFrames(3))
print("frame index: 852")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 856")
yield_return(self.base:WaitFrames(3))
print("frame index: 858")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 862")
yield_return(self.base:WaitFrames(3))
print("frame index: 865")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 868")
yield_return(self.base:WaitFrames(2))
print("frame index: 871")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 874")
yield_return(self.base:WaitFrames(2))
print("frame index: 912")
yield_return(self.base:WaitFrames(37))
print("frame index: 915")
yield_return(self.base:WaitFrames(2))
print("frame index: 932")
yield_return(self.base:WaitFrames(16))
yield_return(self.base:Jump())
print("frame index: 937")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2384.397 , 266.9877 , -4835.607 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.134301 , 0.1134464 , 3.519397 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step305_3 = {
Order = 3, --执行顺序
Type = CaseType.MonoTest,
Description = "骑士团对话", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2283.841 , 229.643 , -4910.537 )
local initForward = CS.UnityEngine.Vector3( -0.4672617 , 1 , -0.8841193 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 23")
yield_return(self.base:WaitFrames(22))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.018199 , 0.2310754 , 4.458083 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 26")
yield_return(self.base:WaitFrames(2))
print("frame index: 41")
yield_return(self.base:WaitFrames(14))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.018199 , 0.2310754 , 4.458083 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 121")
yield_return(self.base:WaitFrames(79))
endPos = CS.UnityEngine.Vector3( 2276.71 , 228.6454 , -4922.131 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.018893 , 0.1134464 , 5.430301 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 194")
yield_return(self.base:WaitFrames(72))
yield_return(self.base:SelectDialog( "" ))
print("frame index: 197")
yield_return(self.base:WaitFrames(2))
print("frame index: 254")
yield_return(self.base:WaitFrames(56))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 258")
yield_return(self.base:WaitFrames(3))
print("frame index: 279")
yield_return(self.base:WaitFrames(20))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 285")
yield_return(self.base:WaitFrames(5))
print("frame index: 322")
yield_return(self.base:WaitFrames(36))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 326")
yield_return(self.base:WaitFrames(3))
print("frame index: 354")
yield_return(self.base:WaitFrames(27))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 359")
yield_return(self.base:WaitFrames(4))
print("frame index: 390")
yield_return(self.base:WaitFrames(30))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 398")
yield_return(self.base:WaitFrames(7))
print("frame index: 426")
yield_return(self.base:WaitFrames(27))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 429")
yield_return(self.base:WaitFrames(2))
print("frame index: 458")
yield_return(self.base:WaitFrames(28))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 461")
yield_return(self.base:WaitFrames(2))
print("frame index: 488")
yield_return(self.base:WaitFrames(26))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 492")
yield_return(self.base:WaitFrames(3))
print("frame index: 516")
yield_return(self.base:WaitFrames(23))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 521")
yield_return(self.base:WaitFrames(4))
print("frame index: 545")
yield_return(self.base:WaitFrames(23))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 548")
yield_return(self.base:WaitFrames(2))
print("frame index: 574")
yield_return(self.base:WaitFrames(25))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 578")
yield_return(self.base:WaitFrames(3))
print("frame index: 601")
yield_return(self.base:WaitFrames(22))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 605")
yield_return(self.base:WaitFrames(3))
print("frame index: 631")
yield_return(self.base:WaitFrames(25))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 634")
yield_return(self.base:WaitFrames(2))
print("frame index: 669")
yield_return(self.base:WaitFrames(34))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 674")
yield_return(self.base:WaitFrames(4))
print("frame index: 696")
yield_return(self.base:WaitFrames(21))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 699")
yield_return(self.base:WaitFrames(2))
print("frame index: 723")
yield_return(self.base:WaitFrames(23))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 727")
yield_return(self.base:WaitFrames(3))
print("frame index: 758")
yield_return(self.base:WaitFrames(30))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 762")
yield_return(self.base:WaitFrames(3))
print("frame index: 783")
yield_return(self.base:WaitFrames(20))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 787")
yield_return(self.base:WaitFrames(3))
print("frame index: 811")
yield_return(self.base:WaitFrames(23))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 815")
yield_return(self.base:WaitFrames(3))
print("frame index: 836")
yield_return(self.base:WaitFrames(20))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 839")
yield_return(self.base:WaitFrames(2))
print("frame index: 861")
yield_return(self.base:WaitFrames(21))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 863")
yield_return(self.base:WaitFrames(1))
print("frame index: 885")
yield_return(self.base:WaitFrames(21))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 888")
yield_return(self.base:WaitFrames(2))
print("frame index: 914")
yield_return(self.base:WaitFrames(25))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 917")
yield_return(self.base:WaitFrames(2))
print("frame index: 936")
yield_return(self.base:WaitFrames(18))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 939")
yield_return(self.base:WaitFrames(2))
print("frame index: 954")
yield_return(self.base:WaitFrames(14))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 958")
yield_return(self.base:WaitFrames(3))
end)
}
UAutoLuaTestCase.Step_5 = {
Order = 5, --执行顺序
Type = CaseType.MonoTest,
Description = "三地城对话", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2278.2 , 229.6424 , -4922.2 )
local initForward = CS.UnityEngine.Vector3( -0.5632939 , 1 , -0.8262566 )
yield_return(self.base:MoveToPositionUntilCutScene(initPos,10,1))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 27")
yield_return(self.base:WaitFrames(26))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.060676 , 0.1134464 , 4.356638 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 33")
yield_return(self.base:WaitFrames(5))
print("frame index: 55")
yield_return(self.base:WaitFrames(21))
print("frame index: 80")
yield_return(self.base:WaitFrames(24))
print("frame index: 88")
yield_return(self.base:WaitFrames(7))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.7155993 , 0.1706772 , 4.405995 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 96")
yield_return(self.base:WaitFrames(7))
endPos = CS.UnityEngine.Vector3( 2277.343 , 228.6428 , -4923.02 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.7196035 , 0.1532197 , 5.159105 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 180")
yield_return(self.base:WaitFrames(83))
yield_return(self.base:SelectDialog( "凯亚" ))
print("frame index: 183")
yield_return(self.base:WaitFrames(2))
print("frame index: 231")
yield_return(self.base:WaitFrames(47))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 234")
yield_return(self.base:WaitFrames(2))
print("frame index: 247")
yield_return(self.base:WaitFrames(12))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 251")
yield_return(self.base:WaitFrames(3))
print("frame index: 262")
yield_return(self.base:WaitFrames(10))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 265")
yield_return(self.base:WaitFrames(2))
print("frame index: 277")
yield_return(self.base:WaitFrames(11))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 280")
yield_return(self.base:WaitFrames(2))
print("frame index: 291")
yield_return(self.base:WaitFrames(10))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 294")
yield_return(self.base:WaitFrames(2))
print("frame index: 303")
yield_return(self.base:WaitFrames(8))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 306")
yield_return(self.base:WaitFrames(2))
print("frame index: 317")
yield_return(self.base:WaitFrames(10))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 321")
yield_return(self.base:WaitFrames(3))
print("frame index: 413")
yield_return(self.base:WaitFrames(91))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.26653 , 0.1134464 , 4.356638 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 417")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2276.915 , 229.4325 , -4923.395 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.266596 , 0.1134464 , 4.32784 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 463")
yield_return(self.base:WaitFrames(45))
yield_return(self.base:SelectDialog( "丽莎" ))
print("frame index: 467")
yield_return(self.base:WaitFrames(3))
print("frame index: 505")
yield_return(self.base:WaitFrames(37))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 509")
yield_return(self.base:WaitFrames(3))
print("frame index: 522")
yield_return(self.base:WaitFrames(12))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 525")
yield_return(self.base:WaitFrames(2))
print("frame index: 534")
yield_return(self.base:WaitFrames(8))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 538")
yield_return(self.base:WaitFrames(3))
print("frame index: 550")
yield_return(self.base:WaitFrames(11))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 554")
yield_return(self.base:WaitFrames(3))
print("frame index: 566")
yield_return(self.base:WaitFrames(11))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 569")
yield_return(self.base:WaitFrames(2))
print("frame index: 579")
yield_return(self.base:WaitFrames(9))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 582")
yield_return(self.base:WaitFrames(2))
print("frame index: 650")
yield_return(self.base:WaitFrames(67))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.7741041 , 0.1134464 , 4.356638 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 656")
yield_return(self.base:WaitFrames(5))
endPos = CS.UnityEngine.Vector3( 2276.915 , 229.5131 , -4923.395 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.7740582 , 0.1134464 , 4.293544 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 671")
yield_return(self.base:WaitFrames(14))
print("frame index: 714")
yield_return(self.base:WaitFrames(42))
print("frame index: 729")
yield_return(self.base:WaitFrames(14))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.68522 , 0.2820432 , 4.502038 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 745")
yield_return(self.base:WaitFrames(15))
endPos = CS.UnityEngine.Vector3( 2278.847 , 228.6429 , -4924.874 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.652582 , 0.1764709 , 5.371233 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 812")
yield_return(self.base:WaitFrames(66))
yield_return(self.base:SelectDialog( "安柏" ))
print("frame index: 816")
yield_return(self.base:WaitFrames(3))
print("frame index: 851")
yield_return(self.base:WaitFrames(34))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 855")
yield_return(self.base:WaitFrames(3))
print("frame index: 869")
yield_return(self.base:WaitFrames(13))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 871")
yield_return(self.base:WaitFrames(1))
print("frame index: 880")
yield_return(self.base:WaitFrames(8))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 883")
yield_return(self.base:WaitFrames(2))
print("frame index: 892")
yield_return(self.base:WaitFrames(8))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 896")
yield_return(self.base:WaitFrames(3))
print("frame index: 908")
yield_return(self.base:WaitFrames(11))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 912")
yield_return(self.base:WaitFrames(3))
print("frame index: 922")
yield_return(self.base:WaitFrames(9))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 925")
yield_return(self.base:WaitFrames(2))
print("frame index: 936")
yield_return(self.base:WaitFrames(10))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 940")
yield_return(self.base:WaitFrames(3))
print("frame index: 952")
yield_return(self.base:WaitFrames(11))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 956")
yield_return(self.base:WaitFrames(3))
end)
}
return self

View File

@@ -0,0 +1,75 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestAuto306",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "QuestAuto306"
self.Category = "任务系统" --自行修改分类
self.Description = "任务306" --自行修改用例描述
self.questId = "306"
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "去神庙门口", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
-- 初始化
self:InitQuest(self.questId)
yield_return(self:ReEnterBigWorld())
-- local initPos = CS.UnityEngine.Vector3( 13.08653, 0.0007573366, 8.001324 )
-- yield_return(self.base:TelePort(initPos))
-- local targetPos1 = CS.UnityEngine.Vector3( 10.92013, 0.02622449, 7.749277 )
-- yield_return(self.base:MoveToPosition(targetPos1,10,1))
-- yield_return(self.base:SelectDialog( "开门" ))
-- local targetPos2 = CS.UnityEngine.Vector3( -0.03320703, 0.02673542, 14.66148 )
-- yield_return(self.base:MoveToPosition(targetPos1,10,1))
-- yield_return(self.base:SelectDialog( "离开骑士团" ))
local targetPos3 = CS.UnityEngine.Vector3( 2127.179, 204.8369, -1156.915 )
yield_return(self.base:TelePort(targetPos3))
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "与安柏对话", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
yield_return(self:WaitMoveToEntityByName("NPC_Girl_Bow_Ambor"))
yield_return(self.base:SelectDialog( "安柏" ))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_3 = {
Order = 3, --执行顺序
Type = CaseType.MonoTest,
Description = "进入神庙", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
local targetPos = CS.UnityEngine.Vector3( 2137.056, 207.7447, -1171.336 )
yield_return(self.base:MoveToPosition(targetPos,10,1))
yield_return(self.base:SelectDialog( "西风之鹰的庙宇" ))
yield_return(self.base:WaitFrames(120))
yield_return(self.base:MouseClick( "Canvas/Pages/DungeonEntryPage/GrpDungeon/Right/Option/BtnStart/Content/Icon"))
end)
}
return self

View File

@@ -0,0 +1,268 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("Quest351",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "Quest351"
self.Category = "任务系统" --自行修改分类
self.Description = "任务351" --自行修改用例描述
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "GM+cutscene", --步骤描述
Action = UAutoCoroutine(function()
yield_return(self:FinishAllNoob())
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2739.7 , 195.5479 , -1711.1 )
local initForward = CS.UnityEngine.Vector3( -0.6834224 , 1 , 0.7300231 )
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 32")
yield_return(self.base:WaitFrames(31))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.8185694 , 0.1134464 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/GrpMainBtn/GrpMainToggle/BtnGm/Icon"))
print("frame index: 35")
yield_return(self.base:WaitFrames(2))
print("frame index: 118")
yield_return(self.base:WaitFrames(82))
yield_return(self.base:MouseClick( "Canvas/Dialogs/InLevelDebugMenuDialog/Common/ClearAll/Text"))
print("frame index: 214")
yield_return(self.base:WaitFrames(91))
yield_return(self.base:MouseClick( "Canvas/Pages/LoginMainPage/DebugPanel/Connect/Text"))
print("frame index: 217")
yield_return(self.base:WaitFrames(2))
print("frame index: 311")
yield_return(self.base:WaitFrames(93))
yield_return(self.base:MouseClick( "Canvas/Pages/CharacterSelectPage/Female"))
print("frame index: 314")
yield_return(self.base:WaitFrames(2))
print("frame index: 1466")
yield_return(self.base:WaitFrames(1151))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6378925 , 0.1134464 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
print("frame index: 1469")
yield_return(self.base:WaitFrames(2))
endPos = CS.UnityEngine.Vector3( 2745.824 , 194.8791 , -1718.185 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6197069 , -0.03430498 , 7.536351 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_2", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2745.824 , 195.5972 , -1718.185 )
local initForward = CS.UnityEngine.Vector3( -0.5552664 , 1 , 0.8316726 )
yield_return(self.base:MoveToPositionUntilCutScene(initPos,10,1))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 35")
yield_return(self.base:WaitFrames(34))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.9016035 , 0.1556724 , 3.367619 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 39")
yield_return(self.base:WaitFrames(3))
print("frame index: 137")
yield_return(self.base:WaitFrames(97))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.9016035 , 0.1556724 , 3.367619 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 185")
yield_return(self.base:WaitFrames(47))
endPos = CS.UnityEngine.Vector3( 2742.035 , 194.5538 , -1713.395 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.9011453 , 0.1134464 , 3.343506 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 259")
yield_return(self.base:WaitFrames(73))
--yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 265")
yield_return(self.base:WaitFrames(5))
print("frame index: 285")
yield_return(self.base:WaitFrames(19))
--yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 290")
yield_return(self.base:WaitFrames(4))
print("frame index: 311")
yield_return(self.base:WaitFrames(20))
--yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 315")
yield_return(self.base:WaitFrames(3))
print("frame index: 334")
yield_return(self.base:WaitFrames(18))
--yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
-- print("frame index: 339")
-- yield_return(self.base:WaitFrames(4))
-- yield_return(self:WaitCutScene(true))
print("frame index: 431")
yield_return(self.base:WaitFrames(91))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.9011353 , 0.1134464 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 468")
yield_return(self.base:WaitFrames(36))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill3/ActionBtn_Sprint(Clone)"))
yield_return(self.base:WaitFoundNearByEntityByName("Kanban",function(result) self.foundEntity = result end,60))
print("frame index: 472")
yield_return(self.base:WaitFrames(3))
print("frame index: 535")
yield_return(self.base:WaitFrames(62))
yield_return(self.base:MoveToEntity(self.foundEntity))
print("frame index: 852")
yield_return(self.base:WaitFrames(106))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill3/ActionBtn_Sprint(Clone)"))
print("frame index: 856")
yield_return(self.base:WaitFrames(3))
print("frame index: 973")
yield_return(self.base:WaitFrames(116))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill3/ActionBtn_Sprint(Clone)"))
print("frame index: 977")
yield_return(self.base:WaitFrames(3))
print("frame index: 1147")
yield_return(self.base:WaitFrames(169))
endPos = CS.UnityEngine.Vector3( 2643.451 , 201.0566 , -1616.732 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.8128081 , -0.04017298 , 3.403763 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1166")
yield_return(self.base:WaitFrames(18))
print("frame index: 1222")
yield_return(self.base:WaitFrames(55))
print("frame index: 1234")
yield_return(self.base:WaitFrames(11))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.3580706 , -0.1752968 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1253")
yield_return(self.base:WaitFrames(18))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill3/ActionBtn_Sprint(Clone)"))
print("frame index: 1257")
yield_return(self.base:WaitFrames(3))
print("frame index: 1335")
yield_return(self.base:WaitFrames(77))
endPos = CS.UnityEngine.Vector3( 2625.763 , 208.2934 , -1609.783 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.3600911 , -0.2433352 , 3.356089 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1356")
yield_return(self.base:WaitFrames(20))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.3600875 , -0.1998353 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1369")
yield_return(self.base:WaitFrames(12))
endPos = CS.UnityEngine.Vector3( 2624.641 , 208.6651 , -1609.361 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.3600275 , -0.1632595 , 3.439708 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1410")
yield_return(self.base:WaitFrames(40))
print("frame index: 1457")
yield_return(self.base:WaitFrames(46))
print("frame index: 1460")
yield_return(self.base:WaitFrames(2))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.334176 , -0.1416957 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1486")
yield_return(self.base:WaitFrames(25))
endPos = CS.UnityEngine.Vector3( 2621.552 , 209.8863 , -1608.268 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.3338672 , 0.02793646 , 3.339703 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1527")
yield_return(self.base:WaitFrames(40))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.3334887 , 0.1099461 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1678")
yield_return(self.base:WaitFrames(150))
endPos = CS.UnityEngine.Vector3( 2617.432 , 215.8231 , -1605.406 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6524203 , -0.002399382 , 3.339703 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1709")
yield_return(self.base:WaitFrames(30))
print("frame index: 1743")
yield_return(self.base:WaitFrames(33))
print("frame index: 1747")
yield_return(self.base:WaitFrames(3))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.198911 , -0.08019061 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1897")
yield_return(self.base:WaitFrames(149))
endPos = CS.UnityEngine.Vector3( 2611.462 , 221.7971 , -1591.328 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.196653 , -0.06870918 , 3.438177 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
return self

View File

@@ -0,0 +1,34 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestBase_351",baseClass)
local self = UAutoLuaTestCase
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
local initPos = CS.UnityEngine.Vector3( 2679 , 194.4493 , -5761.996 )
local initForward = CS.UnityEngine.Vector3( -0.7993239 , 1 , 0.6009004 )
function self.Step_35100()
yield_return(self:WaitCheckQuestState(35100,QuestState.QUEST_STATE_UNFINISHED,QState.ACCEPTED))
yield_return(self.base:RunGM("Quest Finish 35100"))
yield_return(self:WaitCutScene(true))
yield_return(self:WaitCheckQuestState(35100,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35101()
yield_return(self.base:RunGM("Quest Finish 35101"))
yield_return(self:WaitCheckQuestState(35101,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35103()
yield_return(self.base:RunGM("Quest Finish 35103"))
yield_return(self:WaitCheckQuestState(35103,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35102()
yield_return(self.base:RunGM("Quest Finish 35102"))
yield_return(self:WaitCheckQuestState(35102,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
return self

View File

@@ -0,0 +1,61 @@
local baseClass = require('UAuto/TestCases/Quest/351/QuestBase_351')
local UAutoLuaTestCase = class("QuestNormal_351",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = self.__className
self.Description = "新启程"
self.Order = 2
self.Category="任务系统"
self.SetUp = {
Order=0.1,
Category="任务系统",
Type = CaseType.MonoTest,
Description = "初始化",
Action = UAutoCoroutine(function()
yield_return(self.base:SetUpVariables())
end)
}
self.Step35100 = {
Order=1,
Category="任务系统",
Description = "冒险的开始",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35100())
end)
}
self.Step35101 = {
Order=2,
Category="任务系统",
Description = "跟随派蒙",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35101())
end)
}
self.Step35103 = {
Order=3,
Category="任务系统",
Description = "没路了?",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35103())
end)
}
self.Step35102 = {
Order=4,
Category="任务系统",
Description = "攀爬",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35102())
end)
}
return self

View File

@@ -0,0 +1,144 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("Quest352",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "Quest352"
self.Category = "任务系统" --自行修改分类
self.Description = "任务352" --自行修改用例描述
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "362+352cutscene", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2601.012, 224.3733, -1578.002 )
yield_return(self.base:MoveToPosition(initPos))
local initForward = CS.UnityEngine.Vector3( 0.08837877 , 1 , 0.996087 )
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 27")
yield_return(self.base:WaitFrames(26))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.745764 , 0.07292055 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 29")
yield_return(self.base:WaitFrames(1))
print("frame index: 49")
yield_return(self.base:WaitFrames(19))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.745764 , 0.07292055 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 215")
yield_return(self.base:WaitFrames(165))
endPos = CS.UnityEngine.Vector3( 2604.045 , 226.0145 , -1562.502 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.9944749 , 0.1259514 , 1.916541 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 232")
yield_return(self.base:WaitFrames(16))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.7877184 , 0.12012 , 1.723741 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 246")
yield_return(self.base:WaitFrames(13))
endPos = CS.UnityEngine.Vector3( 2604.045 , 226.0149 , -1562.503 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.7875162 , 0.1190416 , 1.723865 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 390")
yield_return(self.base:WaitFrames(143))
print("frame index: 412")
yield_return(self.base:WaitFrames(21))
print("frame index: 423")
yield_return(self.base:WaitFrames(10))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.745782 , 0.02310778 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 442")
yield_return(self.base:WaitFrames(18))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill3/ActionBtn_Sprint(Clone)"))
print("frame index: 444")
yield_return(self.base:WaitFrames(1))
print("frame index: 605")
yield_return(self.base:WaitFrames(160))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/ActionPanelContainer/ActionBtnPanel/Skill3/ActionBtn_Sprint(Clone)"))
print("frame index: 607")
yield_return(self.base:WaitFrames(1))
print("frame index: 696")
yield_return(self.base:WaitFrames(88))
endPos = CS.UnityEngine.Vector3( 2615.691 , 234.0592 , -1496.543 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.745484 , 0.1134464 , 6 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 711")
yield_return(self.base:WaitFrames(14))
print("frame index: 772")
yield_return(self.base:WaitFrames(60))
print("frame index: 777")
yield_return(self.base:WaitFrames(4))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.19711 , 0.1111656 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 812")
yield_return(self.base:WaitFrames(34))
endPos = CS.UnityEngine.Vector3( 2608.778 , 235.9941 , -1483.732 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.200114 , 0.1134464 , 3.339703 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1361")
yield_return(self.base:WaitFrames(581))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "跟随派蒙跑到女神岛", --步骤描述
Action = UAutoCoroutine(function()
yield_return(self:WaitMoveToEntityByName("Kanban"))
yield_return(CS.UnityEngine.WaitForSeconds(1))
yield_return(self:WaitMoveToEntityByName("Kanban"))
end)
}
UAutoLuaTestCase.Step_3 = {
Order = 3, --执行顺序
Type = CaseType.MonoTest,
Description = "登岛+cutscene+教学框关闭", --步骤描述
Action = UAutoCoroutine(function()
print("frame index: 370")
yield_return(self:WaitCutScene(true,60,true))
yield_return(self.base:MouseClick( "Canvas/SuspendBars/TutorialDialog/Content/ClickBtn"))
end)
}
return self

View File

@@ -0,0 +1,424 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("AutoTest_Quest352bug",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "AutoTest_Quest352bug"
self.Category = "任务系统" --自行修改分类
self.Description = "任务bug" --自行修改用例描述
self.Order = 350
UAutoLuaTestCase.bug_352paimon = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "派蒙跑走bug重现", --步骤描述
Action = UAutoCoroutine(function()
yield_return(self.base:RunGM("clear all",true,true))
yield_return(self.base:RunGM("quest finish father 351"))
yield_return(self.base:WaitFrames(60))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/GrpMainBtn/GrpMainToggle/BtnGm/Icon"))
print("frame index: 53")
yield_return(self.base:WaitFrames(3))
print("frame index: 114")
yield_return(self.base:WaitFrames(60))
yield_return(self.base:MouseClick( "Canvas/Dialogs/InLevelDebugMenuDialog/Return/Text"))
print("frame index: 118")
yield_return(self.base:WaitFrames(3))
print("frame index: 190")
yield_return(self.base:WaitFrames(71))
yield_return(self.base:MouseClick( "Canvas/Pages/LoginMainPage/DebugPanel/Connect/Text"))
yield_return(self.base:Jump())
print("frame index: 194")
yield_return(self.base:WaitFrames(3))
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2596.342 , 239.9876 , -5584.849 )
local initForward = CS.UnityEngine.Vector3( 0.1630266 , 1 , 0.9866217 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 15")
yield_return(self.base:WaitFrames(14))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.585313 , 0.08340966 , 3.37251 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 45")
yield_return(self.base:WaitFrames(29))
print("frame index: 52")
yield_return(self.base:WaitFrames(6))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.528975 , 0.07602619 , 3.37251 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 108")
yield_return(self.base:WaitFrames(55))
endPos = CS.UnityEngine.Vector3( 2595.844 , 240.406 , -5569.758 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.531415 , 0.1134464 , 3.380452 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 139")
yield_return(self.base:WaitFrames(30))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.531415 , 0.1134464 , 3.380452 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 144")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2595.831 , 240.7321 , -5568.387 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.531415 , 0.1134464 , 3.380452 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 151")
yield_return(self.base:WaitFrames(6))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 155")
yield_return(self.base:WaitFrames(3))
print("frame index: 668")
yield_return(self.base:WaitFrames(512))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 672")
yield_return(self.base:WaitFrames(3))
print("frame index: 685")
yield_return(self.base:WaitFrames(12))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 688")
yield_return(self.base:WaitFrames(2))
print("frame index: 692")
yield_return(self.base:WaitFrames(3))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 694")
yield_return(self.base:WaitFrames(1))
print("frame index: 698")
yield_return(self.base:WaitFrames(3))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 701")
yield_return(self.base:WaitFrames(2))
print("frame index: 704")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 707")
yield_return(self.base:WaitFrames(2))
print("frame index: 710")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 713")
yield_return(self.base:WaitFrames(2))
print("frame index: 715")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 718")
yield_return(self.base:WaitFrames(2))
print("frame index: 721")
yield_return(self.base:WaitFrames(2))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 723")
yield_return(self.base:WaitFrames(1))
print("frame index: 727")
yield_return(self.base:WaitFrames(3))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 729")
yield_return(self.base:WaitFrames(1))
print("frame index: 809")
yield_return(self.base:WaitFrames(79))
print("frame index: 846")
yield_return(self.base:WaitFrames(36))
print("frame index: 851")
yield_return(self.base:WaitFrames(4))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.560895 , 0.2417953 , 3.457362 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 917")
yield_return(self.base:WaitFrames(65))
endPos = CS.UnityEngine.Vector3( 2605.395 , 239.5569 , -5571.448 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.597646 , 0.1134464 , 3.460827 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 938")
yield_return(self.base:WaitFrames(20))
print("frame index: 961")
yield_return(self.base:WaitFrames(22))
print("frame index: 964")
yield_return(self.base:WaitFrames(2))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 3.540662 , 0.1993716 , 3.429316 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 980")
yield_return(self.base:WaitFrames(15))
endPos = CS.UnityEngine.Vector3( 2609.836 , 239.0643 , -5570.359 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.754491 , 0.1989857 , 3.516439 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1016")
yield_return(self.base:WaitFrames(35))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.755167 , 0.198321 , 3.428621 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1023")
yield_return(self.base:WaitFrames(6))
endPos = CS.UnityEngine.Vector3( 2611.19 , 239.0652 , -5569.808 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.754918 , 0.1781426 , 3.458516 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1473")
yield_return(self.base:WaitFrames(449))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 1476")
yield_return(self.base:WaitFrames(2))
print("frame index: 1507")
yield_return(self.base:WaitFrames(30))
print("frame index: 1571")
yield_return(self.base:WaitFrames(63))
print("frame index: 1577")
yield_return(self.base:WaitFrames(5))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.633169 , 0.1786873 , 3.415641 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1590")
yield_return(self.base:WaitFrames(12))
endPos = CS.UnityEngine.Vector3( 2643.99 , 235.5109 , -5537.698 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.63686 , 0.1451199 , 3.460132 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1601")
yield_return(self.base:WaitFrames(10))
print("frame index: 1626")
yield_return(self.base:WaitFrames(24))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.832249 , 0.1464858 , 3.393984 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(180,false)) --A
print("frame index: 1631")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2643.668 , 235.3404 , -5536.819 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.847226 , 0.1484392 , 3.412601 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1662")
yield_return(self.base:WaitFrames(30))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.934777 , 0.1484392 , 3.395644 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(180,false)) --A
print("frame index: 1667")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2642.558 , 235.0302 , -5536.428 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.934777 , 0.1484392 , 3.399888 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1670")
yield_return(self.base:WaitFrames(2))
print("frame index: 1691")
yield_return(self.base:WaitFrames(20))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.910952 , 0.1482194 , 3.395499 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1701")
yield_return(self.base:WaitFrames(9))
endPos = CS.UnityEngine.Vector3( 2642.266 , 234.6626 , -5535.116 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.899891 , 0.1481152 , 3.48186 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1738")
yield_return(self.base:WaitFrames(36))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.893757 , 0.1478458 , 3.395251 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1747")
yield_return(self.base:WaitFrames(8))
endPos = CS.UnityEngine.Vector3( 2642.858 , 234.2953 , -5533.363 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.893662 , 0.1363294 , 3.46039 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1782")
yield_return(self.base:WaitFrames(34))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.893538 , 0.1134464 , 3.37251 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1789")
yield_return(self.base:WaitFrames(6))
endPos = CS.UnityEngine.Vector3( 2643.375 , 234.0844 , -5531.816 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.893545 , 0.1134464 , 3.460597 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1819")
yield_return(self.base:WaitFrames(29))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.893538 , 0.1134464 , 3.37251 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(180,false)) --A
print("frame index: 1824")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2643.15 , 233.7486 , -5530.868 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.859325 , 0.1134464 , 3.399011 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1846")
yield_return(self.base:WaitFrames(21))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.809413 , 0.1134464 , 3.37251 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1848")
yield_return(self.base:WaitFrames(1))
endPos = CS.UnityEngine.Vector3( 2642.53 , 233.5291 , -5530.421 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.786932 , 0.1134464 , 3.37251 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1881")
yield_return(self.base:WaitFrames(32))
print("frame index: 1895")
yield_return(self.base:WaitFrames(13))
print("frame index: 1905")
yield_return(self.base:WaitFrames(9))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.980535 , 0.1313696 , 3.384359 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1910")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2642.776 , 233.6744 , -5529.269 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.978733 , 0.128817 , 3.457251 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1938")
yield_return(self.base:WaitFrames(27))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.97762 , 0.1146547 , 3.37251 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(180,false)) --A
print("frame index: 1942")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2642.888 , 233.6959 , -5528.608 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.968984 , 0.1134464 , 3.389235 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1965")
yield_return(self.base:WaitFrames(22))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.909068 , 0.1134464 , 3.37251 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1972")
yield_return(self.base:WaitFrames(6))
endPos = CS.UnityEngine.Vector3( 2642.281 , 233.806 , -5527.368 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.888469 , 0.1134464 , 3.458962 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 2008")
yield_return(self.base:WaitFrames(35))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.876976 , 0.1134464 , 3.37251 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 2012")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2642.55 , 233.7679 , -5526.479 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.876794 , 0.1134464 , 3.440496 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 2043")
yield_return(self.base:WaitFrames(30))
print("frame index: 2061")
yield_return(self.base:WaitFrames(17))
print("frame index: 2071")
yield_return(self.base:WaitFrames(9))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.261289 , 0.1253794 , 3.380398 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(0,false)) --D
print("frame index: 2076")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2643.118 , 233.716 , -5525.99 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.283651 , 0.1236655 , 3.400286 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 2092")
yield_return(self.base:WaitFrames(15))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.343659 , 0.1162315 , 3.37251 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 2098")
yield_return(self.base:WaitFrames(5))
endPos = CS.UnityEngine.Vector3( 2644.135 , 233.6211 , -5526.12 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.353199 , 0.1149664 , 3.453289 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 2500")
yield_return(self.base:WaitFrames(401))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 2502")
yield_return(self.base:WaitFrames(1))
end)
}
return self

View File

@@ -0,0 +1,36 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestBase_352",baseClass)
local self = UAutoLuaTestCase
function self.Step_35201()
--yield_return(self.base:RunGM("Quest Accept 35201"))
yield_return(self:WaitCheckQuestState(35201,QuestState.QUEST_STATE_UNFINISHED,QState.ACCEPTED))
yield_return(self.base:RunGM("Quest Finish 35201"))
yield_return(self:WaitCheckQuestState(35201,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
yield_return(self:WaitCutScene(true))
end
function self.Step_35202()
yield_return(self.base:RunGM("Quest Finish 35202"))
yield_return(self:WaitCheckQuestState(35202,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35203()
yield_return(self.base:RunGM("Quest Finish 35203"))
yield_return(self:WaitCheckQuestState(35203,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
yield_return(self:WaitCutScene(true))
end
function self.Step_35204()
yield_return(self.base:RunGM("Quest Finish 35204"))
yield_return(self:WaitCheckQuestState(35204,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35205()
yield_return(self.base:RunGM("Quest Finish 35205"))
yield_return(self:WaitCheckQuestState(35205,QuestState.QUEST_STATE_FINISHED,QState.FINISHED))
end
return self

View File

@@ -0,0 +1,71 @@
local baseClass = require('UAuto/TestCases/Quest/352/QuestBase_352')
local UAutoLuaTestCase = class("QuestNormal_352",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = self.__className
self.Description = "派蒙的指引GM过"
self.Order = 3
self.Category="任务系统"
self.SetUp = {
Order=0.1,
Category="任务系统",
Type = CaseType.MonoTest,
Description = "初始化",
Action = UAutoCoroutine(function()
yield_return(self.base:SetUpVariables())
end)
}
self.Step35201 = {
Order=1,
Category="任务系统",
Description = "到达瞭望台",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35201())
end)
}
self.Step35202 = {
Order=2,
Category="任务系统",
Description = "与派蒙对话",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35202())
end)
}
self.Step35203 = {
Order=3,
Category="任务系统",
Description = "跟随派蒙",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35203())
end)
}
self.Step35204 = {
Order=4,
Category="任务系统",
Description = "游到女神像",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35204())
end)
}
self.Step35205 = {
Order=5,
Category="任务系统",
Description = "派蒙对话&下场",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35205())
end)
}
return self

View File

@@ -0,0 +1,223 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("Quest353",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "Quest353"
self.Category = "任务系统" --自行修改分类
self.Description = "任务353" --自行修改用例描述
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "对话派蒙+杀怪", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
local startPos = CS.UnityEngine.Vector3(2561.245,213.3913,-1331.259)
yield_return(self.base:RunGM("quest clear father 353"))
yield_return(self.base:RunGM("quest finish father 351 362 352"))
yield_return(self.base:TelePort(startPos))
yield_return(self.base:WaitFrames(43))
yield_return(self:WaitMoveToEntityByName("Kanban"))
yield_return(self.base:WaitFrames(30))
yield_return(self.base:SelectDialog( "派蒙" ))
yield_return(self:WaitCutScene(true))
print("frame index: 589")
yield_return(self.base:WaitFrames(77))
yield_return(self.base:MouseClick( "Canvas/SuspendBars/TutorialDialog/Content/ClickBtn"))
print("frame index: 594")
yield_return(self.base:WaitFrames(4))
print("frame index: 615")
yield_return(self.base:WaitFrames(20))
print("frame index: 687")
yield_return(self.base:WaitFrames(71))
print("frame index: 727")
yield_return(self.base:WaitFrames(39))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.636148 , 0.2859693 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
yield_return(self.base:RunGM("kill monster all"))
print("frame index: 732")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2565.491 , 213.5402 , -1333.999 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 1.637227 , 0.2859693 , 5.855431 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 834")
yield_return(self.base:WaitFrames(101))
print("frame index: 868")
yield_return(self.base:WaitFrames(33))
print("frame index: 869")
print("frame index: 874")
yield_return(self.base:WaitFrames(4))
print("frame index: 890")
yield_return(self.base:WaitFrames(15))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.2313108 , 0.3091425 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
yield_return(self.base:RunGM("kill monster all"))
print("frame index: 894")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2565.503 , 213.4386 , -1334.008 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.2323836 , 0.3091425 , 5.849073 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 926")
yield_return(self.base:WaitFrames(31))
print("frame index: 954")
yield_return(self.base:WaitFrames(27))
print("frame index: 973")
yield_return(self.base:WaitFrames(18))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6310692 , 0.3767076 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
yield_return(self.base:RunGM("kill monster all"))
print("frame index: 976")
yield_return(self.base:WaitFrames(2))
endPos = CS.UnityEngine.Vector3( 2565.516 , 213.2171 , -1334.018 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6309843 , 0.3767076 , 5.879768 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1019")
yield_return(self.base:WaitFrames(42))
print("frame index: 1093")
yield_return(self.base:WaitFrames(73))
print("frame index: 1122")
yield_return(self.base:WaitFrames(28))
print("frame index: 1166")
yield_return(self.base:WaitFrames(43))
yield_return(self:WaitMoveToEntityByName("Kanban"))
yield_return(self.base:WaitFrames(30))
yield_return(self.base:SelectDialog( "派蒙" ))
print("frame index: 28")
yield_return(self.base:WaitFrames(3))
print("frame index: 218")
yield_return(self.base:WaitFrames(4))
print("frame index: 312")
yield_return(self.base:WaitFrames(93))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 317")
yield_return(self.base:WaitFrames(4))
print("frame index: 429")
yield_return(self.base:WaitFrames(111))
yield_return(self.base:MouseClick( "Canvas/Dialogs/TalkDialog/GrpSelect/0/Highlight"))
print("frame index: 434")
yield_return(self.base:WaitFrames(4))
print("frame index: 556")
yield_return(self.base:WaitFrames(121))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 561")
yield_return(self.base:WaitFrames(4))
print("frame index: 620")
yield_return(self.base:WaitFrames(58))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 630")
yield_return(self.base:WaitFrames(9))
print("frame index: 720")
yield_return(self.base:WaitFrames(89))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 725")
yield_return(self.base:WaitFrames(4))
print("frame index: 811")
yield_return(self.base:WaitFrames(85))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 816")
yield_return(self.base:WaitFrames(4))
print("frame index: 946")
yield_return(self.base:WaitFrames(129))
yield_return(self.base:MouseClick( "Canvas/Dialogs/TalkDialog/GrpSelect/0/Highlight"))
print("frame index: 951")
yield_return(self.base:WaitFrames(4))
print("frame index: 1052")
yield_return(self:WaitCutScene(true,60,true))
yield_return(self.base:MouseClick( "NameField"))
yield_return(self.base:CreateName( "我是测试名字" ))
print("frame index: 1056")
yield_return(self.base:WaitFrames(3))
print("frame index: 1153")
yield_return(self.base:WaitFrames(96))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelNamePage/GrpName/OKBtn/Content/ImgBg"))
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "解锁女神像+对话派蒙", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
yield_return(self:WaitMoveToEntityByName("Kanban"))
yield_return(self:WaitCutScene(true,10,true))
print("frame index: 0")
yield_return(self:WaitMoveToEntityByName("SP014_ProtoType_01"))
yield_return(self.base:SelectDialog( "七天神像" ))
yield_return(self:WaitCutScene(true))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMapPage/GrpMap/Top/BtnClose/Content/Btn"))
print("frame index: 819")
yield_return(self.base:WaitFrames(4))
yield_return(self:WaitMoveToEntityByName("Kanban"))
yield_return(self.base:WaitFrames(30))
yield_return(self.base:SelectDialog( "派蒙" ))
yield_return(self:WaitCutScene(true,10,true))
end)
}
return self

View File

@@ -0,0 +1,34 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestBase_353",baseClass)
local self = UAutoLuaTestCase
function self.Step_35301()
--yield_return(self.base:RunGM("Quest Accept 35201"))
yield_return(self:WaitCheckQuestState(35201,QuestState.QUEST_STATE_UNFINISHED,QState.ACCEPTED))
yield_return(self.base:RunGM("Quest Finish 35301"))
yield_return(self:WaitCheckQuestState(35201,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35302()
yield_return(self.base:RunGM("Quest Finish 35302"))
yield_return(self:WaitCheckQuestState(35202,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35303()
yield_return(self.base:RunGM("Quest Finish 35303"))
yield_return(self:WaitCheckQuestState(35203,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35304()
yield_return(self.base:RunGM("Quest Finish 35304"))
yield_return(self:WaitCheckQuestState(35204,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35305()
yield_return(self.base:RunGM("Quest Finish 35305"))
yield_return(self:WaitCheckQuestState(35205,QuestState.QUEST_STATE_FINISHED,QState.FINISHED))
end
return self

View File

@@ -0,0 +1,89 @@
local baseClass = require('UAuto/TestCases/Quest/353/QuestBase_353')
local UAutoLuaTestCase = class("QuestNormal_353",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = self.__className
self.Description = "战斗教学(GM过)"
self.Order = 4
self.Category="任务系统"
self.SetUp = {
Order=0.1,
Category="任务系统",
Type = CaseType.MonoTest,
Description = "初始化",
Action = UAutoCoroutine(function()
yield_return(self.base:SetUpVariables())
end)
}
self.Step35301 = {
Order=1,
Category="任务系统",
Description = "自动和派蒙说话",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35301())
end)
}
self.Step35302 = {
Order=2,
Category="任务系统",
Description = "小技能教学",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35302())
end)
}
self.Step35303 = {
Order=3,
Category="任务系统",
Description = "小技能蓄力二段教学",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35303())
end)
}
self.Step35304 = {
Order=4,
Category="任务系统",
Description = "充能技和冲刺闪避教学",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35304())
end)
}
self.Step35305 = {
Order=5,
Category="任务系统",
Description = "去找飞过的女孩子",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35305())
yield_return(self.base:RunGM("kill monster 20011001"))
end)
}
self.CloseTuturial = {
Order=6,
Category="任务系统",
Description = "关闭教学",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(CS.UnityEngine.WaitForSeconds(5))
local dialog = CS.UnityEngine.GameObject.Find("TutorialDialog")
local timeout = 10
while(dialog~=nil and dialog.activeInHierarchy) do
yield_return(self.base:ClickScreen())
yield_return(CS.UnityEngine.WaitForSeconds(1))
timeout=timeout-1
assert(timeout>0,"关闭教学超时")
end
end)
}
return self

View File

@@ -0,0 +1,100 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("Quest354",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "Quest354"
self.Category = "任务系统" --自行修改分类
self.Description = "任务354" --自行修改用例描述
self.Order = 355
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "安柏入队", --步骤描述
Action = UAutoCoroutine(function()
print("frame index: 55")
yield_return(self.base:WaitFrames(1))
yield_return(self.base:RunGM("quest finish father 351 362 352 353 355"))
print("frame index: 70")
yield_return(self.base:WaitFrames(20))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMapPage/GrpMap/Top/BtnClose/Content/Btn"))
print("frame index: 114")
yield_return(self.base:WaitFrames(58))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/GrpMainBtn/GrpMainToggle/BtnGm/Icon"))
print("frame index: 118")
yield_return(self.base:WaitFrames(3))
print("frame index: 161")
yield_return(self.base:WaitFrames(42))
yield_return(self.base:MouseClick( "Canvas/Dialogs/InLevelDebugMenuDialog/Return/Text"))
print("frame index: 164")
yield_return(self.base:WaitFrames(2))
print("frame index: 232")
yield_return(self.base:WaitFrames(67))
yield_return(self.base:MouseClick( "Canvas/Pages/LoginMainPage/DebugPanel/Connect/Text"))
print("frame index: 26")
yield_return(self.base:WaitFrames(400))
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2326.516 , 207.4934 , -1139.429 )
local initForward = CS.UnityEngine.Vector3( -0.999847 , 1 , 0.01749653 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 23")
yield_return(self.base:WaitFrames(22))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.09373593 , 0.1495047 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:RunGM("quest finish father 351 362 352 353 355"))
print("frame index: 52")
yield_return(self.base:WaitFrames(25))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.09373593 , 0.1495047 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 175")
yield_return(self.base:WaitFrames(122))
endPos = CS.UnityEngine.Vector3( 2308.603 , 208.1407 , -1141.111 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.09373593 , 0.1495047 , 6 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 182")
yield_return(self.base:WaitFrames(6))
print("frame index: 222")
yield_return(self.base:WaitFrames(39))
print("frame index: 250")
yield_return(self.base:WaitFrames(27))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6628084 , 0.1657275 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 268")
yield_return(self.base:WaitFrames(17))
endPos = CS.UnityEngine.Vector3( 2305.551 , 208.7472 , -1139.428 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6628084 , 0.1657275 , 6 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 731")
yield_return(self:WaitCutScene(true))
print("frame index: 1295")
yield_return(self.base:WaitFrames(4))
end)
}
return self

View File

@@ -0,0 +1,192 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("QuestAuto354",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "QuestAuto354"
self.Category = "任务系统" --自行修改分类
self.Description = "任务354" --自行修改用例描述
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_1", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2310.736 , 208.8145 , -1141.423 )
local initForward = CS.UnityEngine.Vector3( -0.5552663 , 1 , 0.8316726 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 31")
yield_return(self.base:WaitFrames(30))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.9821132 , 0.1134464 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 34")
yield_return(self.base:WaitFrames(2))
print("frame index: 67")
yield_return(self.base:WaitFrames(32))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.9821132 , 0.1134464 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
yield_return(self.base:RunGM("quest finish father 351 352 353"))
--解锁前置
yield_return(self.base:Jump())
print("frame index: 398")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2310.742 , 208.4267 , -1141.423 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.9821132 , 0.1134464 , 3.333687 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 480")
yield_return(self.base:WaitFrames(81))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/GrpMainBtn/GrpMainToggle/BtnGm/Icon"))
print("frame index: 494")
yield_return(self.base:WaitFrames(13))
print("frame index: 530")
yield_return(self.base:WaitFrames(35))
yield_return(self.base:MouseClick( "Canvas/Dialogs/InLevelDebugMenuDialog/Return/Text"))
print("frame index: 535")
yield_return(self.base:WaitFrames(4))
print("frame index: 584")
yield_return(self.base:WaitFrames(48))
yield_return(self.base:MouseClick( "Canvas/Pages/LoginMainPage/DebugPanel/Connect/Text"))
print("frame index: 588")
yield_return(self.base:WaitFrames(3))
print("frame index: 853")
yield_return(self.base:WaitFrames(264))
print("frame index: 856")
yield_return(self.base:WaitFrames(2))
print("frame index: 873")
yield_return(self.base:WaitFrames(16))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.9426443 , 0.03070442 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:Jump())
yield_return(self.base:RunGM("quest accept 35401"))
--接取354
yield_return(self.base:Jump())
print("frame index: 1627")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2309.441 , 208.7083 , -1142.298 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.8086917 , 0.110018 , 3.294709 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 1652")
yield_return(self.base:WaitFrames(24))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.8064461 , 0.1134464 , 3.344754 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 1679")
yield_return(self.base:WaitFrames(26))
endPos = CS.UnityEngine.Vector3( 2305.51 , 208.7546 , -1138.993 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.7704781 , 0.1134464 , 3.850191 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_2", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2193.912 , 212.7991 , -1009.296 )
local initForward = CS.UnityEngine.Vector3( 0.4283472 , 1 , 0.9036142 )
--yield_return(self.base:MoveToPositionUntilCutScene(initPos,10,1))
--yield_return(self.base:InitAvatarRotate(initForward))
yield_return(self.base:TelePort(initPos))
print("frame index: 36")
yield_return(self.base:WaitFrames(35))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.013453 , 0.2025274 , 3.398595 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 38")
yield_return(self.base:WaitFrames(1))
print("frame index: 53")
yield_return(self.base:WaitFrames(14))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.013453 , 0.2025274 , 3.398595 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 92")
yield_return(self.base:WaitFrames(38))
endPos = CS.UnityEngine.Vector3( 2196.489 , 211.8142 , -1003.856 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.013293 , 0.1169207 , 4.403272 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 123")
yield_return(self.base:WaitFrames(30))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.013124 , 0.1134464 , 3.339703 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 133")
yield_return(self.base:WaitFrames(9))
endPos = CS.UnityEngine.Vector3( 2197.199 , 211.8176 , -1002.356 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.013142 , 0.1134464 , 4.006682 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 142")
yield_return(self.base:WaitFrames(8))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.013175 , 0.1134464 , 3.802921 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 158")
yield_return(self.base:WaitFrames(15))
endPos = CS.UnityEngine.Vector3( 2198.421 , 211.8099 , -999.7728 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.013157 , 0.1134464 , 4.328457 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 176")
yield_return(self.base:WaitFrames(17))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.012921 , 0.1134464 , 3.433003 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 522")
yield_return(self.base:WaitFrames(345))
endPos = CS.UnityEngine.Vector3( 2224.94 , 209.9897 , -943.7559 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.013071 , 0.1134464 , 3.405329 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
yield_return(self:WaitCutScene(true))
end)
}
return self

View File

@@ -0,0 +1,32 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestBase_354",baseClass)
local self = UAutoLuaTestCase
function self.Step_35401()
yield_return(self.base:RunGM("Quest Accept 35401"))
yield_return(self:WaitCheckQuestState(35201,QuestState.QUEST_STATE_UNFINISHED,QState.ACCEPTED))
yield_return(self.base:RunGM("Quest Finish 35401"))
yield_return(self:WaitCheckQuestState(35201,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
yield_return(self:WaitCutScene(true))
end
function self.Step_35402()
yield_return(self.base:RunGM("Quest Finish 35402"))
yield_return(self:WaitCheckQuestState(35202,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_35403()
yield_return(self.base:RunGM("Quest Finish 35403"))
yield_return(self:WaitCheckQuestState(35203,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
yield_return(self.base:ChooseGeneralDialog(false))
end
function self.Step_35404()
yield_return(self.base:RunGM("Quest Finish 35404"))
yield_return(self:WaitCheckQuestState(35204,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
return self

View File

@@ -0,0 +1,62 @@
local baseClass = require('UAuto/TestCases/Quest/354/QuestBase_354')
local UAutoLuaTestCase = class("QuestNormal_354",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = self.__className
self.Description = "安柏入队(GM过)"
self.Order = 4.5
self.Category="任务系统"
self.SetUp = {
Order=0.1,
Category="任务系统",
Type = CaseType.MonoTest,
Description = "初始化",
Action = UAutoCoroutine(function()
yield_return(self.base:SetUpVariables())
end)
}
self.Step35301 = {
Order=1,
Category="任务系统",
Description = "触发cutscene",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35401())
end)
}
self.Step35302 = {
Order=2,
Category="任务系统",
Description = "安柏自我介绍",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35402())
end)
}
self.Step35303 = {
Order=3,
Category="任务系统",
Description = "安柏入队",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35403())
end)
}
self.Step35304 = {
Order=4,
Category="任务系统",
Description = "开镜教学射风史莱姆",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_35404())
end)
}
return self

View File

@@ -0,0 +1,515 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("unlockTransPoint",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "unlockTransPoint"
self.Category = "任务系统" --自行修改分类
self.Description = "遍历传送点" --自行修改用例描述
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "clearall", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
yield_return(self:FinishAllNoob())
print("frame index: 1591")
yield_return(self.base:WaitFrames(2))
print("frame index: 48")
yield_return(self.base:WaitFrames(2))
print("frame index: 119")
yield_return(self.base:WaitFrames(70))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.820496 , 0.1493668 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 121")
yield_return(self.base:WaitFrames(1))
endPos = CS.UnityEngine.Vector3( 2745.824 , 194.5953 , -1718.185 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.820496 , 0.1493668 , 6 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
print("frame index: 226")
yield_return(self.base:WaitFrames(4))
print("frame index: 342")
yield_return(self.base:WaitFrames(115))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/GrpMainBtn/GrpMainToggle/BtnGm/Icon"))
print("frame index: 348")
yield_return(self.base:WaitFrames(5))
print("frame index: 395")
yield_return(self.base:WaitFrames(46))
yield_return(self.base:MouseClick( "Canvas/Dialogs/InLevelDebugMenuDialog/Return/Text"))
print("frame index: 402")
yield_return(self.base:WaitFrames(6))
print("frame index: 480")
yield_return(self.base:WaitFrames(77))
yield_return(self.base:MouseClick( "Canvas/Pages/LoginMainPage/DebugPanel/Connect/Text"))
print("frame index: 485")
yield_return(self.base:WaitFrames(4))
print("frame index: 650")
yield_return(self.base:WaitFrames(164))
print("frame index: 698")
yield_return(self.base:WaitFrames(47))
print("frame index: 741")
yield_return(self.base:WaitFrames(42))
print("frame index: 768")
yield_return(self.base:WaitFrames(26))
print("frame index: 810")
yield_return(self.base:WaitFrames(41))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.8111091 , 0.09490784 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
yield_return(self.base:MoveByAngle(270,false)) --W
print("frame index: 815")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 2745.673 , 194.595 , -1718.013 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.8115311 , 0.09674919 , 6 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_2", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2618.025 , 233.2316 , -1552.342 )
local initForward = CS.UnityEngine.Vector3( -0.6024703 , 1 , 0.7981412 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 29")
yield_return(self.base:WaitFrames(28))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6280304 , 0.2080354 , 4.55538 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 33")
yield_return(self.base:WaitFrames(3))
print("frame index: 89")
yield_return(self.base:WaitFrames(55))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6280304 , 0.2080354 , 4.55538 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 91")
yield_return(self.base:WaitFrames(1))
endPos = CS.UnityEngine.Vector3( 2618.024 , 232.2322 , -1552.342 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.6280625 , 0.2080354 , 4.55538 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_3 = {
Order = 3, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_3", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2265.196 , 245.5196 , -1567.859 )
local initForward = CS.UnityEngine.Vector3( 0.5717404 , 1 , -0.8204347 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 67")
yield_return(self.base:WaitFrames(66))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.4152367 , 0.0202133 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 70")
yield_return(self.base:WaitFrames(2))
print("frame index: 77")
yield_return(self.base:WaitFrames(6))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.4152367 , 0.0202133 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 80")
yield_return(self.base:WaitFrames(2))
endPos = CS.UnityEngine.Vector3( 2265.196 , 244.6188 , -1567.859 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.4152054 , 0.0202133 , 5.998719 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_4 = {
Order = 4, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_4", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2219.968 , 226.7862 , -1158.445 )
local initForward = CS.UnityEngine.Vector3( -0.9953936 , 1 , -0.095873 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 16")
yield_return(self.base:WaitFrames(15))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.055486 , 0.2095218 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 19")
yield_return(self.base:WaitFrames(2))
print("frame index: 27")
yield_return(self.base:WaitFrames(7))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.055486 , 0.2095218 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 30")
yield_return(self.base:WaitFrames(2))
endPos = CS.UnityEngine.Vector3( 2219.968 , 225.8824 , -1158.446 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.055392 , 0.2095218 , 5.98192 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_5 = {
Order = 5, --执行顺序
Type = CaseType.MonoTest,
Description = "女神像2解锁", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 1941.144 , 195.7516 , -1273.105 )
local initForward = CS.UnityEngine.Vector3( -0.9971584 , 1 , 0.07533532 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 27")
yield_return(self.base:WaitFrames(26))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 0.05292739 , 0.1249507 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 31")
yield_return(self.base:WaitFrames(3))
yield_return(self:WaitMoveToEntityByName("ProtoType_01"))
print("frame index: 190")
yield_return(self.base:WaitFrames(58))
yield_return(self.base:RunGM("kill monster all"))
yield_return(self.base:SelectDialog( "七天神像" ))
print("frame index: 193")
yield_return(self.base:WaitFrames(2))
print("frame index: 498")
yield_return(self.base:WaitFrames(304))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 503")
yield_return(self.base:WaitFrames(4))
print("frame index: 630")
yield_return(self.base:WaitFrames(126))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMapPage/GrpMap/Top/BtnClose/Content/Btn"))
print("frame index: 636")
yield_return(self.base:WaitFrames(5))
print("frame index: 681")
yield_return(self.base:WaitFrames(44))
print("frame index: 685")
yield_return(self.base:WaitFrames(3))
print("frame index: 711")
yield_return(self.base:WaitFrames(25))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.2370598 , 0.1134464 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 715")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 1932.878 , 195.9561 , -1272.972 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.2370558 , 0.1134464 , 5.96889 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_6 = {
Order = 6, --执行顺序
Type = CaseType.MonoTest,
Description = "女神像3解锁", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 1852.587 , 258.1593 , -572.325 )
local initForward = CS.UnityEngine.Vector3( 0.8906822 , 1 , -0.4546268 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 21")
yield_return(self.base:WaitFrames(20))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.664153 , 0.2042943 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 24")
yield_return(self.base:WaitFrames(2))
print("frame index: 169")
yield_return(self.base:WaitFrames(2))
endPos = CS.UnityEngine.Vector3( 1856.372 , 257.6521 , -574.282 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.664191 , 0.1329021 , 6 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
yield_return(self:WaitMoveToEntityByName("ProtoType_01"))
print("frame index: 205")
yield_return(self.base:WaitFrames(35))
yield_return(self.base:RunGM("kill monster all"))
yield_return(self.base:SelectDialog( "七天神像" ))
print("frame index: 208")
yield_return(self.base:WaitFrames(2))
print("frame index: 482")
yield_return(self.base:WaitFrames(273))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelCutScenePage"))
print("frame index: 487")
yield_return(self.base:WaitFrames(4))
print("frame index: 629")
yield_return(self.base:WaitFrames(141))
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMapPage/GrpMap/Top/BtnClose/Content/Btn"))
print("frame index: 634")
yield_return(self.base:WaitFrames(4))
print("frame index: 739")
yield_return(self.base:WaitFrames(104))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.664188 , 0.3867587 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 742")
yield_return(self.base:WaitFrames(2))
endPos = CS.UnityEngine.Vector3( 1856.952 , 257.7219 , -574.582 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.664204 , 0.3862532 , 5.970783 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_7 = {
Order = 7, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_7", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 2024.193 , 212.7572 , -823.771 )
local initForward = CS.UnityEngine.Vector3( 0.4166157 , 1 , -0.9090827 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 77")
yield_return(self.base:WaitFrames(76))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.380388 , 0.4987207 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 80")
yield_return(self.base:WaitFrames(2))
print("frame index: 91")
yield_return(self.base:WaitFrames(10))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.380388 , 0.4987207 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 95")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 2024.196 , 212.2881 , -823.771 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( 2.380388 , 0.4987207 , 5.773318 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_8 = {
Order = 8, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_8", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 1979.072 , 224.5172 , -1525.753 )
local initForward = CS.UnityEngine.Vector3( -0.7307107 , 1 , 0.6826872 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 13")
yield_return(self.base:WaitFrames(12))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.8604271 , 0.2437425 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 17")
yield_return(self.base:WaitFrames(3))
print("frame index: 29")
yield_return(self.base:WaitFrames(11))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -0.8604271 , 0.2437425 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
end)
}
UAutoLuaTestCase.Step_9 = {
Order = 9, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_9", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 1791.304 , 237.1951 , -913.281 )
local initForward = CS.UnityEngine.Vector3( 0.2780675 , 1 , 0.9605615 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 17")
yield_return(self.base:WaitFrames(16))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.553378 , 0.3402803 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 20")
yield_return(self.base:WaitFrames(2))
print("frame index: 32")
yield_return(self.base:WaitFrames(11))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.553378 , 0.3402803 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 37")
yield_return(self.base:WaitFrames(4))
endPos = CS.UnityEngine.Vector3( 1791.304 , 236.9044 , -913.281 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.553375 , 0.3402803 , 5.802649 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_10 = {
Order = 10, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_10", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 1510 , 272.5791 , -1519 )
local initForward = CS.UnityEngine.Vector3( 0.2780675 , 1 , 0.9605615 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 17")
yield_return(self.base:WaitFrames(16))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.118324 , 0.264036 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 21")
yield_return(self.base:WaitFrames(3))
print("frame index: 34")
yield_return(self.base:WaitFrames(12))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.118324 , 0.264036 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 38")
yield_return(self.base:WaitFrames(3))
endPos = CS.UnityEngine.Vector3( 1510 , 271.9111 , -1519 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.118371 , 0.264036 , 5.921689 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
UAutoLuaTestCase.Step_11 = {
Order = 11, --执行顺序
Type = CaseType.MonoTest,
Description = "Step_11", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
print("frame index: 0")
local initPos = CS.UnityEngine.Vector3( 1425 , 356.7453 , -2059 )
local initForward = CS.UnityEngine.Vector3( 0.2780675 , 1 , 0.9605615 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
print("frame index: 22")
yield_return(self.base:WaitFrames(21))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.489875 , 0.2249978 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 25")
yield_return(self.base:WaitFrames(2))
print("frame index: 38")
yield_return(self.base:WaitFrames(12))
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.489875 , 0.2249978 , 6 )
yield_return(self.base:RotateByCameraData(cameraData))
print("frame index: 41")
yield_return(self.base:WaitFrames(2))
endPos = CS.UnityEngine.Vector3( 1426.685, 331.7986, -2059.168 )
cameraData.cameraSpherical=CS.UnityEngine.Vector3( -1.489852 , 0.2249978 , 5.96021 )
yield_return(self.base:MoveByAngle(-1,true,endPos,cameraData))
end)
}
return self

View File

@@ -0,0 +1,65 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("Quest355",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "Quest355"
self.Category = "任务系统" --自行修改分类
self.Description = "任务355--与巨龙相会" --自行修改用例描述
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "初始化,看到巨龙", --步骤描述
Action = UAutoCoroutine(function()
yield_return(self.base:RunGM("quest clear father 355 361"))
local initPos = CS.UnityEngine.Vector3( 2540, 216, -1289 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:RunGM("quest finish father 351 362 352 353"))
yield_return(self:ReEnterBigWorld())
end)
}
UAutoLuaTestCase.Step_3 = {
Order = 3, --执行顺序
Type = CaseType.MonoTest,
Description = "向树林深处前进击杀史莱姆看宝箱cutscene", --步骤描述
Action = UAutoCoroutine(function()
local endPos = CS.UnityEngine.Vector3( 2476.039, 197.9515, -1207.941 )
yield_return(self.base:MoveByAI(endPos))
yield_return(self.base:RunGM("kill monster all"))
yield_return(self:WaitCutScene(true,10,true))
end)
}
UAutoLuaTestCase.Step_4 = {
Order = 4, --执行顺序
Type = CaseType.MonoTest,
Description = "向树林深处继续前进,看cutscene", --步骤描述
Action = UAutoCoroutine(function()
local endPos = CS.UnityEngine.Vector3( 2404.373, 202.9988, -1149.539 )
yield_return(self.base:MoveByAI(endPos))
endPos =CS.UnityEngine.Vector3( 2369.812, 205.5956, -1137.807)
yield_return(self.base:MoveByAI(endPos))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_5 = {
Order = 5, --执行顺序
Type = CaseType.MonoTest,
Description = "调查派蒙发现的东西拿结晶过cutscene", --步骤描述
Action = UAutoCoroutine(function()
yield_return(self:ReEnterBigWorld())
local endPos = CS.UnityEngine.Vector3( 2347.579, 211.4826, -1133.424 )
yield_return(self.base:MoveToPosition(endPos))
yield_return(self.base:SelectDialog( "结晶" ))
yield_return(self:WaitCutScene(true))
end)
}
return self

View File

@@ -0,0 +1,152 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestAuto356-357",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "QuestAuto356-357"
self.Category = "任务系统" --自行修改分类
self.Description = "任务356-357" --自行修改用例描述
self.questId = "356"
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "找安柏对话", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
-- self:InitQuest(self.questId)
-- yield_return(self:ReEnterBigWorld())
local initPos = CS.UnityEngine.Vector3( 2224.562 , 211.0045 , -944.5621 )
local initForward = CS.UnityEngine.Vector3( 0.4252258 , 1 , 0.9050873 )
yield_return(self.base:TelePort(initPos))
yield_return(self.base:InitAvatarRotate(initForward))
-- yield_return(self.base:WaitFrames(50))
yield_return(self:WaitMoveToEntityByName("Ambor"))
-- local targetPos = CS.UnityEngine.Vector3( 2229.3 , 210.9926 , -937.8999 )
-- local endForward = CS.UnityEngine.Vector3( -0.3569519 , 1 , 0.9341228 )
-- yield_return(self.base:MoveToPositionUntilCutScene(targetPos,10,1))
-- yield_return(self.base:InitAvatarRotate(endForward))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "跟随安柏看cutscene", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
local targetPos = CS.UnityEngine.Vector3( 2252.9, 215.9927, -891.7 )
local endForward = CS.UnityEngine.Vector3( 0.7407106 , 1 , 0.6718242 )
yield_return(self.base:MoveToPositionUntilCutScene(targetPos,20,1))
yield_return(self.base:InitAvatarRotate(endForward))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_3 = {
Order = 3, --执行顺序
Type = CaseType.MonoTest,
Description = "去砍龙结晶", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
-- local initPos = CS.UnityEngine.Vector3( 2250.926 , 216.9463 , -882.5068 )
-- local initForward = CS.UnityEngine.Vector3( -0.2116177 , 1 , 0.9773525 )
-- yield_return(self.base:MoveToPosition(initPos,10,1))
-- yield_return(self.base:InitAvatarRotate(initForward))
yield_return(self:WaitMoveToEntityByName("DragonFeather"))
local attackCount = 15
while attackCount > 0 do
yield_return(CS.UnityEngine.WaitForSeconds(0.3))
yield_return(self.base:Skill(0))
attackCount = attackCount - 1
end
end)
}
UAutoLuaTestCase.Step_4 = {
Order = 4, --执行顺序
Type = CaseType.MonoTest,
Description = "去领滑翔翼", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
-- local initPos = CS.UnityEngine.Vector3( 2262.4, 215.9496, -876.2 )
yield_return(self:WaitMoveToEntityByName("Ambor"))
yield_return(self.base:SelectDialog( "安柏" ))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_5 = {
Order = 5, --执行顺序
Type = CaseType.MonoTest,
Description = "飞到屋顶与安柏对话", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
-- yield_return(self.base:MouseClick( "Canvas/GuideLayoutSafeAreasAndMargins"))
yield_return(self.base:Fly())
yield_return(self:WaitMoveToEntityByName("Ambor"))
yield_return(self.base:WaitFrames(120))
yield_return(self.base:SelectDialog( "安柏" ))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_6 = {
Order = 6, --执行顺序
Type = CaseType.MonoTest,
Description = "切换安柏射结晶", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
yield_return(self.base:MouseClick( "Canvas/Pages/InLevelMainPage/GrpMainPage/TeamBtnContainer/Content/UI_AvatarIcon_Side_Ambor/TeamBtn"))
yield_return(self.base:Skill(0, false))
yield_return(CS.UnityEngine.WaitForSeconds(2))
yield_return(self.base:SkillUp(0))
local deltaAngle = CS.UnityEngine.Vector3( -5.444407 , -0.3648148 , -6.686823E-07)
yield_return(self.base:RotateFocusCamera(deltaAngle))
yield_return(self.base:Skill(0))
yield_return(self.base:RunGM("quest finish 35706"))
yield_return(self.base:RunGM("quest finish 35707"))
yield_return(self.base:RunGM("quest finish 35711"))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_7 = {
Order = 7, --执行顺序
Type = CaseType.MonoTest,
Description = "去骑士团", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
local targetPos = CS.UnityEngine.Vector3( 2243.57, 238.6464, -780.4276 )
yield_return(self.base:MoveToPosition(targetPos,100,1))
end)
}
return self

View File

@@ -0,0 +1,53 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestAuto358",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "QuestAuto358"
self.Category = "任务系统" --自行修改分类
self.Description = "任务358" --自行修改用例描述
self.questId = "358"
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "进入骑士团", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
-- 初始化
self:InitQuest(self.questId)
yield_return(self:ReEnterBigWorld())
local initPos = CS.UnityEngine.Vector3( 2244.817, 236.5632, -783.5051 )
yield_return(self.base:TelePort(initPos))
local targetPos = CS.UnityEngine.Vector3( 2243.268, 238.6435, -779.1453 )
yield_return(self.base:MoveToPosition(targetPos,10,1))
yield_return(self.base:SelectDialog( "进入骑士团" ))
yield_return(self:WaitCutScene(true))
end)
}
UAutoLuaTestCase.Step_2 = {
Order = 2, --执行顺序
Type = CaseType.MonoTest,
Description = "与琴对话", --步骤描述
Action = UAutoCoroutine(function()
local cameraData = TestCaseBaseClass.CameraData()
local clickPos = CS.UnityEngine.Vector2( 0, 0 )
local endPos = CS.UnityEngine.Vector3( 0, 0, 0 )
yield_return(self:WaitMoveToEntityByName("Kaeya",100,100))
yield_return(self.base:SelectDialog( "" ))
yield_return(self:WaitCutScene(true))
yield_return(self.base:RunGM("jump 3"))
end)
}
return self

View File

@@ -0,0 +1,29 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestAuto354",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = "Quest361"
self.Category = "任务系统" --自行修改分类
self.Description = "任务361--风龙飞过" --自行修改用例描述
UAutoLuaTestCase.Step_1 = {
Order = 1, --执行顺序
Type = CaseType.MonoTest,
Description = "风龙飞过", --步骤描述
Action = UAutoCoroutine(function()
local initPos = CS.UnityEngine.Vector3( 2540, 216, -1289 )
yield_return(self.base:RunGM("quest clear father 361"))
yield_return(self.base:RunGM("quest finish father 351 362 352 353"))
yield_return(self:ReEnterBigWorld())
yield_return(self.base:TelePort(initPos))
local endPos = CS.UnityEngine.Vector3( 2497.954 , 199.8537 , -1220.871 )
yield_return(self.base:MoveByAI(endPos))
end)
}
return self

View File

@@ -0,0 +1,65 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestBase_404",baseClass)
local self = UAutoLuaTestCase
function self.Step_40400()
yield_return(self.base:RunGM("Quest Accept 40400"))
yield_return(self:WaitCheckQuestState(40400,QuestState.QUEST_STATE_UNFINISHED,QState.ACCEPTED))
yield_return(self.base:RunGM("Quest Finish 40400"))
yield_return(self:WaitCheckQuestState(40400,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_40401()
yield_return(self.base:RunGM("Quest Finish 40401"))
yield_return(self:WaitCheckQuestState(40401,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_40402()
yield_return(self.base:RunGM("Quest Finish 40402"))
yield_return(self:WaitCheckQuestState(40402,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_40403()
yield_return(self.base:RunGM("Quest Finish 40403"))
yield_return(self:WaitCheckQuestState(40403,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_40404()
yield_return(self.base:RunGM("Quest Finish 40404"))
yield_return(self:WaitCheckQuestState(40404,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_40405()
yield_return(self.base:RunGM("Quest Finish 40405"))
yield_return(self:WaitCheckQuestState(40405,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_40406()
yield_return(self.base:RunGM("Quest Finish 40406"))
yield_return(self:WaitCheckQuestState(40406,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_40407()
yield_return(self.base:RunGM("Quest Finish 40407"))
yield_return(self:WaitCheckQuestState(40407,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_40408()
yield_return(self.base:RunGM("Quest Finish 40408"))
yield_return(self:WaitCheckQuestState(40408,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
end
function self.Step_40409()
yield_return(self.base:RunGM("Quest Finish 40409"))
yield_return(self:WaitCheckQuestState(40409,QuestState.QUEST_STATE_FINISHED,QState.FINISHED))
end
function self.Step_40410()
yield_return(self.base:RunGM("Quest Finish 40410"))
yield_return(self:WaitCheckQuestState(40409,QuestState.QUEST_STATE_FINISHED,QState.FINISHED))
end
return self

View File

@@ -0,0 +1,89 @@
local baseClass = require('UAuto/TestCases/Quest/404/QuestBase_404')
local UAutoLuaTestCase = class("QuestNormal_404",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = self.__className
self.Description = "安柏酱的飞行特训-风起地GM命令过"
self.Category="任务系统"
self.SetUp = {
Order=0.1,
Category="任务系统",
Type = CaseType.MonoTest,
Description = "初始化清除40400任务状态",
Action = UAutoCoroutine(function()
yield_return(self.base:SetUpVariables())
yield_return(self.base:RunGM("QUEST CLEAR 40400"))
end)
}
self.Step40400 = {
Order=1,
Category="任务系统",
Description = "安柏指引去飞行比赛,与安柏对话",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40400())
end)
}
self.Step40401 = {
Order=2,
Category="任务系统",
Description = "接受挑战1,到风起地找安柏",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40401())
end)
}
self.Step40402 = {
Order=3,
Category="任务系统",
Description = "碰到飞行终点的羽球,碰到飞行终点的羽球",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40402())
end)
}
self.Step40404 = {
Order=4,
Category="任务系统",
Description = "比赛成功回到报名点,回到起点找安柏",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40404())
end)
}
self.Step40406 = {
Order=5,
Category="任务系统",
Description = "接受挑战2,与安柏对话",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40406())
end)
}
self.Step40407 = {
Order=6,
Category="任务系统",
Description = "碰到飞行终点的羽球,碰到飞行终点的羽球",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40407())
end)
}
self.Step40409 = {
Order=7,
Category="任务系统",
Description = "比赛成功回到报名点,回到起点找安柏",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40409())
end)
}
return self

View File

@@ -0,0 +1,33 @@
local baseClass = require('UAuto/TestCases/Quest/QuestBase')
local UAutoLuaTestCase = class("QuestBase_405",baseClass)
local self = UAutoLuaTestCase
function self.Step_40501()
yield_return(self.base:RunGM("Quest Accept 40501"))
yield_return(self:WaitCheckQuestState(40501,QuestState.QUEST_STATE_UNFINISHED,QState.ACCEPTED))
--yield_return(self:CheckQuestPromtOnMiniMap())
yield_return(self.base:RunGM("Quest Finish 40501"))
yield_return(self:WaitCheckQuestState(40501,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
--yield_return(self:CheckQuestPromtOnMiniMap())
end
function self.Step_40502()
yield_return(self.base:RunGM("Quest Finish 40502"))
yield_return(self:WaitCheckQuestState(40502,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
--yield_return(self:CheckQuestPromtOnMiniMap())
end
function self.Step_40503()
yield_return(self.base:RunGM("Quest Finish 40503"))
yield_return(self:WaitCheckQuestState(40503,QuestState.QUEST_STATE_FINISHED,QState.UPDATED))
--yield_return(self:CheckQuestPromtOnMiniMap())
end
function self.Step_40504()
yield_return(self.base:RunGM("Quest Finish 40504"))
yield_return(self:WaitCheckQuestState(40504,QuestState.QUEST_STATE_FINISHED,QState.FINISHED))
--yield_return(self:CheckQuestPromtOnMiniMap(false))
end
return self

View File

@@ -0,0 +1,51 @@
local baseClass = require('UAuto/TestCases/Quest/405/QuestBase_405')
local UAutoLuaTestCase = class("QuestNormal_405",baseClass)
local self = UAutoLuaTestCase
self.TestFixture = self.__className
self.Description = "安柏酱的飞行特训-醉汉峡GM命令过"
self.Category="任务系统"
self.SetUp = {
Order=0.1,
Category="任务系统",
Type = CaseType.MonoTest,
Description = "初始化清除40501任务",
Action = UAutoCoroutine(function()
yield_return(self.base:SetUpVariables())
yield_return(self.base:RunGM("QUEST CLEAR 40501"))
end)
}
self.Step40501 = {
Order=2,
Category="任务系统",
Description = "接受醉汉峡挑战,到醉汉峡找安柏",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40501())
end)
}
self.Step40502 = {
Order=3,
Category="任务系统",
Description = "碰到飞行终点的羽球,碰到飞行终点的羽球",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40502())
end)
}
self.Step40504 = {
Order=5,
Category="任务系统",
Description = "比赛成功回到报名点,回到起点找安柏",
Type = CaseType.MonoTest,
Action = UAutoCoroutine(function()
yield_return(self:Step_40504())
end)
}
return self

View File

@@ -0,0 +1,74 @@
--baseClass提供基础接口
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
--所有testcase继承baseClass
local UAutoLuaTestCase = class("FirstGoddess",baseClass)
--测试集名称(必选)
UAutoLuaTestCase.TestFixture = "FirstGoddess"
local self = UAutoLuaTestCase
self.Description = "第一个女神像"
self.Category="任务系统,女神像引导系统"
self.Order = 3.5
function UAutoLuaTestCase.GotoGoddessAction()
--yield_return(self.base:TelePort(CS.UnityEngine.Vector3(517.5846,215.0666,-304.1295)))
self.goddessEntity=nil
yield_return(self.base:WaitFoundNearByEntityByName("SceneObj_NPC_Goddess",
function(result) self.goddessEntity = result end))
assert(self.goddessEntity~=nil,"self.goddessEntity is null")
yield_return(self.base:MoveToEntity(self.goddessEntity))
end
--测试case
self.GotoGoddess = {
--当前case执行顺序
Order=1,
--当前case分类
Category="任务系统",
Description = "到神像旁边",
--测试case类型MonoTest 游戏中测试以协程方式执行可以通过yield_return释放控制权不会卡住游戏
Type = CaseType.MonoTest,
--具体case的执行逻辑MonoTest类型需用UAutoCoroutine开头
Action = UAutoCoroutine(self.GotoGoddessAction)
}
self.TalkToGoddess = {
--当前case执行顺序
Order=2,
--当前case分类
Category="任务系统",
Description = "与神像对话",
--测试case类型MonoTest 游戏中测试以协程方式执行可以通过yield_return释放控制权不会卡住游戏
Type = CaseType.MonoTest,
--具体case的执行逻辑MonoTest类型需用UAutoCoroutine开头
Action = UAutoCoroutine(function()
print "TalkToGoddessAction"
yield_return(self:WaitTalk("女神像"))
end)
}
self.WaitGoddessCurScene = {
Order=3,
Category="任务系统",
Type = CaseType.MonoTest,
Description = "等待神像的CutScene结束",
Action = UAutoCoroutine(function()
print "WaitGoddessCurScene"
yield_return(self:WaitCutScene(true))
end)
}
self.CloseUnlockPopupMap = {
Order=4,
Category="任务系统",
Type = CaseType.MonoTest,
Description = "关闭解锁小地图时的弹出框",
Action = UAutoCoroutine(function()
print "Close Map"
yield_return(self:CloseMap())
end)
}
--一定要返回当前类对象
return self

View File

@@ -0,0 +1,6 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("NPCRunInMengde",baseClass)
UAutoLuaTestCase.TestFixture = "NPCRunInMengde"
local self = UAutoLuaTestCase
self.Description = "npc在蒙德城随机走动"
self.Category="任务系统"

View File

@@ -0,0 +1,201 @@
local baseClass = require('UAuto/Base/UAutoLuaTestBase')
local UAutoLuaTestCase = class("QuestBase",baseClass)
UAutoLuaTestCase.TestFixture = "QuestBase"
local self = UAutoLuaTestCase
--State
QuestState =
{
"QUEST_STATE_NONE", --= 0, // 不能领取
"QUEST_STATE_ACCEPTABLE", --= 1, // 可领取
"QUEST_STATE_UNFINISHED", --= 2, // 未完成
"QUEST_STATE_FINISHED", --= 3, // 已完成
"QUEST_STATE_FAILED", --= 4, // 已失败
}
QuestState = CreatEnumTable(QuestState)
--state
QState =
{
"INVALID", --= -1, // 不可用
"ACCEPTED", --= 0, // 已接
"UPDATED", --2// 更新,子任务完成
"FINISHED", --3// 完成
"FAILED", --4// 失败
}
QState = CreatEnumTable(QState)
function self:GotoMengDeGate()
local Position = CS.UnityEngine.Vector3(2204.2631,207.7111, -964.23)
yield_return(self.base:TelePort(Position))
end
function self:TriggerMengDeTask()
self:GotoMengDeGate()
local TriggerPosition1 = CS.UnityEngine.Vector3(2246.3881,209.0002,-904.5758)
self.base.timePassed=0
yield_return(self.base:MoveToPosition(TriggerPosition1))
yield_return(self:WaitCutScene(true))
end
--[[
@desc: 跟随entity
author:wyl
依赖:
1self.entity:跟随的entity
2self.endPosition跟随的终点
]]
function self:FllowEntity(entity, endPosition)
self.entity = entity
self.endPosition = endPosition
assert(self.entity~=nil, tostring(self.entity).." 不能跟随")
self.base.timePassed=0
local timeout=0
while (true) do
yield_return(self.base:MoveToEntity(self.entity))
local distance = CS.UnityEngine.Vector3.Distance(self.base.avatar.transform.position,self.endPosition)
if distance<1 then
break
end
timeout = timeout+CS.UnityEngine.Time.deltaTime
assert(timeout<60,"Fllow entity timeout")
end
end
function self:GetQuestInfo(questID)
self.questID = questID or 0
self.QuestModule = singletonManager:GetSingletonInstance("MoleMole.QuestModule")
self.subQuestList = self.QuestModule:GetSubQuestListByMainID(self.questID);
return self.subQuestList
end
function self:WaitCheckQuestState(subQuestID, State, state)
State = State or 0
state = state or -1
self.subQuestID = subQuestID or 0
if(subQuestID~=0) then
self.questID = string.sub(subQuestID,1,3)
end
self.QuestModule = singletonManager:GetSingletonInstance("MoleMole.QuestModule")
local timeout = 0
local foundState = false
local foundstate = false
print(self.questID,self.subQuestID)
while true do
assert(timeout<10,"CheckQuestState timeout")
yield_return(CS.UnityEngine.WaitForSeconds(1))
timeout=timeout+1
self.subQuestList = self.QuestModule:GetSubQuestListByMainID(self.questID);
if(self.subQuestList~=nil) then
for k,v in pairs(self.subQuestList) do
if(v.QuestId == self.subQuestID) then
print(State, state)
if(State~=0 and State == v.State) then
foundState=true
end
if(state ~= -1 and state == v.state:EnumToInt()) then
foundstate = true
end
return v.State, v.state:EnumToInt()
end
end
if(foundState and foundstate) then
break
end
end
end
end
function self:CheckQuestPromtOnMiniMap(CheckPromtNum)
print(CheckPromtNum)
if(CheckPromtNum==nil) then
CheckPromtNum = true
end
yield_return(self:OpenQuestUI())
yield_return(self:CloseQuestUI())
yield_return(self:OpenMap())
if(CheckPromtNum == true) then
assert (self.MonoMiniMap.markContainerLayers[1].childCount == 1 ,"promt number wrong on minimap")
end
yield_return(self:CloseMap())
end
function self:OpenQuestUI()
assert(self.base.InLevelMainPage~=nil,"self.base.InLevelMainPage is nil")
self.base.InLevelMainPage:GetComponent("MoleMole.MonoInLevelMainPage").questDialogToggle.onClick:Invoke()
yield_return(self.base:WaitFoundGameObject("InLevelQuestDialog",function(result) self.InLevelQuestDialog = result end))
assert(self.InLevelQuestDialog~=nil,"self.InLevelQuestDialog is nil")
local timeout = 0
self._questBook = self.InLevelQuestDialog:GetComponent("MonoInLevelQuestDialog"):GetPrivateField("_questBook")
while self._questBook.gameObject.activeInHierarchy == false do
yield_return(CS.UnityEngine.WaitForSeconds(1))
timeout=timeout+1
assert(timeout<10,"OpenQuestUI timeout")
end
yield_return(CS.UnityEngine.WaitForSeconds(1))
end
function self:CloseQuestUI()
assert(self.InLevelQuestDialog~=nil,"self.InLevelQuestDialog is nil")
self.InLevelQuestDialog:GetComponent("MonoInLevelQuestDialog").questBook.closeButton.onClick:Invoke()
local timeout = 0
self._questBook = self.InLevelQuestDialog:GetComponent("MonoInLevelQuestDialog"):GetPrivateField("_questBook")
while self._questBook.gameObject.activeInHierarchy do
yield_return(CS.UnityEngine.WaitForSeconds(1))
timeout=timeout+1
assert(timeout<10,"CloseQuestUI timeout")
end
yield_return(CS.UnityEngine.WaitForSeconds(1))
end
function self:ClearAll()
yield_return(self.base:MouseClick("Canvas/Pages/InLevelMainPage/GrpMainPage/GrpMainBtn/GrpMainToggle/BtnGm/Icon"))
yield_return(CS.UnityEngine.WaitForSeconds(1))
yield_return(self.base:MouseClick("Canvas/Dialogs/InLevelDebugMenuDialog/Common/ClearAll/Text"))
yield_return(CS.UnityEngine.WaitForSeconds(1))
yield_return(self.base:EnterBigWorldFromGame(""))
yield_return(CS.UnityEngine.WaitForSeconds(1))
end
self.questIdArray = {"351", "362", "352", "353", "361", "355", "354", "356", "357", "358", "306"}
function self:InitQuest(questId)
yield_return(self.base:RunGM("quest clear all"))
local finishGmStr = "quest finish father "
for i, id in pairs(self.questIdArray) do
if(id == questId) then
break
else
finishGmStr = finishGmStr..id.." "
end
end
yield_return(self.base:RunGM(finishGmStr))
yield_return(self.base:RunGM("quest clear father "..questId))
end
function self:ReEnterBigWorld()
print("ReEnterBigWorld")
local gameManager = CS.UnityEngine.GameObject.Find("GameManager")
local gameManagerComponent = gameManager:GetComponent("GameManager")
if gameManagerComponent.isOnlineMode then
singletonManager:GetSingletonInstance("MoleMole.NetworkManager"):RequestLeaveScene();
yield_return(CS.UnityEngine.WaitForSeconds(1))
yield_return(self.base:EnterBigWorldFromGame(""))
yield_return(CS.UnityEngine.WaitForSeconds(1))
else
singletonManager:GetSingletonInstance("MoleMole.PlayerModule"):GoBackHome();
yield_return(self.base:EnterStreaming())
end
end
return self