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,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