mirror of
https://gitlab.com/YuukiPS/GSServer-CBT.git
synced 2025-10-06 03:46:00 +03:00
melon
This commit is contained in:
144
soggy_resources/lua/UAuto/TestCases/quest/352/Quest352.lua
Normal file
144
soggy_resources/lua/UAuto/TestCases/quest/352/Quest352.lua
Normal 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
|
424
soggy_resources/lua/UAuto/TestCases/quest/352/Quest352bug.lua
Normal file
424
soggy_resources/lua/UAuto/TestCases/quest/352/Quest352bug.lua
Normal 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
|
@@ -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
|
@@ -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
|
Reference in New Issue
Block a user