mirror of
https://gitlab.com/YuukiPS/GSServer-CBT.git
synced 2025-08-25 02:18:41 +03:00
melon
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
--baseClass提供基础接口
|
||||
local baseClass = require('UAuto/TestCases/Online/OnlineBase')
|
||||
--所有testcase继承baseClass
|
||||
local UAutoLuaTestCase = class("OnlineGirlSkill",baseClass)
|
||||
local self = UAutoLuaTestCase
|
||||
self.TestFixture = "OnlineGirlSkill"
|
||||
self.Category = "联机"
|
||||
self.Description="联机女主技能"
|
||||
|
||||
|
||||
self.SetUpHost = {
|
||||
Order = 0.1,
|
||||
Type = CaseType.MonoTest,
|
||||
RunMode = RunMode.Host,
|
||||
Description="初始化主机位置",
|
||||
Action = UAutoCoroutine(function()
|
||||
yield_return(self:ChangeAvatar("PlayerGirl"))
|
||||
yield_return(self.base:RunGM("ENERGY INFINITE ON"))
|
||||
yield_return(self.base:RunGM("SKILL DEPOT 704"))
|
||||
yield_return(self.base:MoveToPosition(self.hostStartPosVec))
|
||||
end)
|
||||
}
|
||||
|
||||
|
||||
self.SetUpClient = {
|
||||
Order = 0.2,
|
||||
Type = CaseType.MonoTest,
|
||||
RunMode = RunMode.Client,
|
||||
Description="初始化客机位置",
|
||||
Action = UAutoCoroutine(function()
|
||||
yield_return(self:ChangeAvatar("PlayerGirl"))
|
||||
yield_return(self.base:RunGM("ENERGY INFINITE ON"))
|
||||
yield_return(self.base:RunGM("SKILL DEPOT 704"))
|
||||
yield_return(self.base:MoveToPosition(self.clientPointVec))
|
||||
end)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
self.HostDoSkill0 = {
|
||||
Order = 1,
|
||||
Type = CaseType.MonoTest,
|
||||
RunMode = RunMode.Host,
|
||||
Description="主机放普攻",
|
||||
Action = UAutoCoroutine(function()
|
||||
yield_return(self.base:StartSyncRecord())
|
||||
local attackCount = 5
|
||||
while attackCount > 0 do
|
||||
yield_return(CS.UnityEngine.WaitForSeconds(0.35))
|
||||
yield_return(self.base:Skill(0))
|
||||
attackCount = attackCount - 1
|
||||
end
|
||||
yield_return(self.base:StopSyncRecord())
|
||||
end)
|
||||
}
|
||||
|
||||
self.ClientCheckSkill0 = {
|
||||
Order = 2,
|
||||
Type = CaseType.MonoTest,
|
||||
RunMode = RunMode.Client,
|
||||
Description="客机验证主机普攻所产生的特效,动作",
|
||||
Action = UAutoCoroutine(function()
|
||||
self.base:CheckRemote()
|
||||
end)
|
||||
}
|
||||
|
||||
self.HostDoSkill1 = {
|
||||
Order = 3,
|
||||
Type = CaseType.MonoTest,
|
||||
RunMode = RunMode.Host,
|
||||
Description="主机放技能1(蓄力风球)",
|
||||
Action = UAutoCoroutine(function()
|
||||
yield_return(self.base:StartSyncRecord())
|
||||
yield_return(self.base:Skill(1,false))
|
||||
yield_return(CS.UnityEngine.WaitForSeconds(5))
|
||||
yield_return(self.base:SkillUp(1))
|
||||
yield_return(self.base:StopSyncRecord())
|
||||
end)
|
||||
}
|
||||
|
||||
self.ClientCheckSkill1 = {
|
||||
Order = 3.5,
|
||||
Type = CaseType.MonoTest,
|
||||
RunMode = RunMode.Client,
|
||||
Description="客机验证主机蓄力风球所产生的特效、动作、状态",
|
||||
Action = UAutoCoroutine(function()
|
||||
self.base:CheckRemote()
|
||||
end)
|
||||
}
|
||||
|
||||
|
||||
self.HostDoSkill4 = {
|
||||
Order = 5,
|
||||
Type = CaseType.MonoTest,
|
||||
RunMode = RunMode.Host,
|
||||
Description="主机放技能3(充能技)",
|
||||
Action = UAutoCoroutine(function()
|
||||
yield_return(self.base:StartSyncRecord())
|
||||
yield_return(self.base:Skill(4))
|
||||
yield_return(self.base:StopSyncRecord())
|
||||
end)
|
||||
}
|
||||
|
||||
self.ClientCheckSkill4 = {
|
||||
Order = 5.5,
|
||||
Type = CaseType.MonoTest,
|
||||
RunMode = RunMode.Client,
|
||||
Description="客机验证主机充能技所产生的位移、特效、动作、状态",
|
||||
Action = UAutoCoroutine(function()
|
||||
self.base:CheckRemote()
|
||||
end)
|
||||
}
|
||||
|
||||
return self
|
Reference in New Issue
Block a user