帮助中心帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
在系统浏览器中查看 OSLC 资源
自 R2021a 起
show(resource)
示例
show(resource) 在系统浏览器中打开与 resource 关联的 ResourceUrl。
resource
ResourceUrl
全部折叠
此示例显示如何使用已配置的 OSLC 客户端提交新需求资源的创建请求。
按照为需求管理域创建并配置 OSLC 客户端中所述创建并配置 OSLC 客户端myClient后,为需求资源类型创建一个创建工厂。
myClient
myCreationFactory = getCreationFactory(myClient,'Requirement');
使用创建工厂创建一个名为 My New Requirement 的新需求资源。从服务提供商处检索需求资源的完整资源数据并检查该资源。
My New Requirement
newReq = createRequirement(myCreationFactory,'My New Requirement'); fetch(newReq,myClient); newReq
newReq = Requirement with properties: ResourceUrl: 'https://localhost:9443/rm/resources/_72lxMWJREeup0...' Dirty: 0 IsFetched: 1 Title: 'My New Requirement' Identifier: '1806'
使用show函数在系统浏览器中打开需求资源。
show
show(newReq)
oslc.rm.Requirement
oslc.rm.RequirementCollection
oslc.cm.ChangeRequest
OSLC 资源,指定为以下对象之一:
oslc.qm.TestCase
oslc.qm.TestExecutionRecord
oslc.qm.TestPlan
oslc.qm.TestResult
oslc.qm.TestScript
在 R2021a 中推出
oslc.Client | oslc.rm.Requirement | oslc.rm.RequirementCollection | oslc.cm.ChangeRequest | oslc.qm.TestCase | oslc.qm.TestExecutionRecord | oslc.qm.TestPlan | oslc.qm.TestResult | oslc.qm.TestScript | fetch | commit | remove
oslc.Client
fetch
commit
remove
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office