如何更改Xcode 4用于下载组件的Apple ID?(How can I change the Apple ID that Xcode 4 uses to download components?)
我在OS X 10.6.8上运行Xcode 4.2。
由于公司政策,我有两个苹果公司的ID。
me@bigcorp.com
是我的“工作”ID,这是连接到我的iOS开发者计划会员资格的ID。 我也有me@personalmail.com
,我的“个人”ID,这与我的音乐,愤怒的小鸟下载等相关联。我正在尝试从Xcode(Xcode - >首选项 - >下载 - >组件)中安装iOS 4.3模拟器。 当我点击该组件旁边的“安装”按钮时,Xcode抱怨说
me@personalmail.com
不是“注册的Apple开发人员”。 我想让它使用me@bigcorp.com
,但我找不到任何描述如何更改它,在Xcode或其他方式的任何参考。 任何人都可以解释如何击败Xcode提交?I am running Xcode 4.2 on OS X 10.6.8.
Due to corporate policy, I have two Apple ID's.
me@bigcorp.com
is my "work" ID, and that's the ID that is connected to my iOS Developer Program membership. I also haveme@personalmail.com
, my "personal" ID, which is associated with my music, Angry Birds download, and so on.I'm trying to install the iOS 4.3 Simulator from within Xcode (Xcode -> Preferences -> Downloads -> Components). When I click the "install" button next to that component, Xcode complains that
me@personalmail.com
is not a "Registered Apple Developer". I'd like to have it useme@bigcorp.com
, but I can't find any reference anywhere that describes how to change it, within Xcode or otherwise. Can anyone explain how to beat Xcode into submission?
原文:https://stackoverflow.com/questions/7997317
最满意答案
除非是一个流程,否则我不会在一个场景中这样做。 我不会去xyz.com,我也不会点击,因为那不是'行为。 页面对象将帮助您。
Scenario: Register a new account Given I do not have an account When I register a new account Then I can use those credentials to access the site
然后我会创建适当的步骤
Given(/^I do not have an account%/) do @credentials = get_unique_credentials @browser = Watir::Browser.new :firefox end When(/^I register a new account$/) do visit RegistrationPage do |page| page.name = @credentials[0] page.password = @credentials[1] page.register end end Then(/^I can use those credentials to access the site$/) do visit LoginPage do |page| page.name = @credentials[0] page.password = @credentials[1] page.login end on HomePage do |page| expect(page.something).to exist end end
I would not do that in one scenario unless it is one flow. And I wouldn't go to xyz.com, and I wouldn't click on things because that isn't 'behavior. Page objects will help you.
Scenario: Register a new account Given I do not have an account When I register a new account Then I can use those credentials to access the site
Then I'd create appropriate steps
Given(/^I do not have an account%/) do @credentials = get_unique_credentials @browser = Watir::Browser.new :firefox end When(/^I register a new account$/) do visit RegistrationPage do |page| page.name = @credentials[0] page.password = @credentials[1] page.register end end Then(/^I can use those credentials to access the site$/) do visit LoginPage do |page| page.name = @credentials[0] page.password = @credentials[1] page.login end on HomePage do |page| expect(page.something).to exist end end
相关问答
更多-
除非是一个流程,否则我不会在一个场景中这样做。 我不会去xyz.com,我也不会点击,因为那不是'行为。 页面对象将帮助您。 Scenario: Register a new account Given I do not have an account When I register a new account Then I can use those credentials to access the site 然后我会创建适当的步骤 Given(/^I do not have an account%/ ...
-
当然,唯一的方法是通过JavaScript,你会这样做: window.onload = function() { document.getElementsByTagName('body')[0].onkeyup = function(e) { var ev = e || event; if(ev.keyCode == 70) {//&& ev.ctrlKey) { //do something... } } }; 要找到所需的特定密钥代 ...
-
测试与黄瓜的关联(Testing associations with cucumber)[2022-09-05]
避免使用ID,而是列出组永远不会更改的名称。 So I found out an easy way to test associations. If I say that a I have only one group in scenario, when I am on that step I can create the group with the specific id like this g = Group.create(:name => "Group 1", :id => 1) Then I j ... -
我建议通过http://www.pragmaticprogrammer.com/titles/idgtr获取本书,使用Ruby进行脚本GUI测试。 基本上你需要一些方法来驱动你的操作系统在Windows上你可以使用win32ole驱动Wscript例如 s = WIN32OLE.new 'Wscript.Shell' s.Exec 'notepad' 你没有提到什么操作系统等... I would suggest getting the book, Scripted GUI Testing With Ru ...
-
用黄瓜测试omniauth(Testing omniauth with cucumber)[2021-11-02]
将env.rb的内容更改为此,现在可以正常工作。 Before('@omniauth_test') do OmniAuth.config.test_mode = true Capybara.default_host = 'http://example.com' OmniAuth.config.add_mock(:twitter, { :uid => '12345', :info => { :name => 'twitteruser', } }) O ... -
寻找与黄瓜测试PHP相当的“无头浏览器”(Looking for a “headless browser” equivalent for PHP for Cucumber testing)[2022-01-17]
如果将Cucumber设置为使用Webrat,则可以将Webrat设置为默认使用Mechanize 。 Mechanize本质上是一个无头浏览器。 这是我的env.rb文件的样子: # RSpec require 'rspec/expectations' # Webrat require 'webrat' require 'test/unit/assertions' World(Test::Unit::Assertions) Webrat.configure do |config| config. ... -
黄瓜组合测试(Combinatorial testing with Cucumber)[2023-07-03]
Scenario: Test my stuff Given first var combinations is @var_a_combos Given second var combinations is @var_b_combos When I run every combination Then good stuff should happen @var_a_combos和@var_b_combos是一个Enumerable,它包含该类型的所有可能性。 When I run every combina ... -
黄瓜与内置测试?(Cucumber vs. built-in testing? [Rails])[2021-07-05]
我从来没有在测试框架中编写大量测试,而是直接跳入工厂女孩和RSpec使用Cucumber,我非常满意。 我觉得很容易描述我想在黄瓜工作的功能。 我一直很难让自己先写单元测试。 所以从我个人的经历来看,我可以鼓励你跳进有趣的东西! I never wrote a lot of tests with the build in testing framework, but jumped right in to use Cucumber with factory girl and RSpec and am VERY ... -
如何从黄瓜/ aruba捕获shell脚本程序输出?(How to capture shell script program output from cucumber/aruba?)[2023-04-30]
您可以使用%x(command)来获取%x(command)的标准输出。 然后,您可以使用Time.parse将"Sat Nov 5 12:04:18 CET 2016"为2016-11-05 12:04:18 +0100作为Time对象,并将其与Time.now进行比较: require 'time' time_from_abc_script = Time.parse(%x(bash abc_qa.sh 1)) puts (Time.now-time_from_abc_script).abs < 5 # ... -
这不是在JAX-RS服务中访问服务上下文的正确方法, WebServiceContext类被注入到JAX-WS Web服务中。 在JAX-RS服务类中,您可以使用@Context注释来注入HttpServletRequest请求对象并向其询问标头。 例如: @GET @Path("/login") @Produces(MediaType.APPLICATION_JSON) public String login(@Context HttpServletRequest request); 您可以查看此链接以 ...