English 中文(简体)
如何将实际效果与我们在 Ja矿试验框架中的真实记录进行比较?
原标题:Best way to compare EXPECT result with our true records in Jasmine testing framework?

What are the ways to compare the expect results with our true records using Jasmine Testing Framework?

一种办法是在预期参数内使用一种对基本价值有利的固定数值...... 但是,它有一些限制,例如它没有比较在运行时间的物体......

如何在时间上比较物体是否有效?

http://www.un.org。

it("Read JSON record with Id.", function(){
        result = Database.selectRecordById (STORE_ID, id3);
        expect(result).toEqual(aRecord);   //cValue
    });

这里是法典。 现在,我的问题是比较result。 页: 1 页: 1 现在使用的是<代码>a的静态值。 记录。 我想采取一些更可靠的其他方式,使我的<代码>aRecord变得动态。 一种想法是建立一个包含所有真实价值的数据库......但后来,我不得不人工地看到...... 有哪些其他选择?

最佳回答

在我看来,对结果进行比较的固定价值没有任何错误。 这就是我们通常如何在 Java和 Java本进行单位测试。

实际价值是指从实际数据库/方法<>/strong>获取的expected数值为static Value。 你们在这里的路程越小,越好。 如果你真心实意地装上预期的价值,那也会错失,如果你的申请被误用,那么你就不希望你测试。 保持这种局面也更加麻烦。

我希望我不理解你的问题。

问题回答

暂无回答




相关问题
Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Best browser for testing under Safari Mobile on Linux?

I have an iPhone web app I m producing on a Linux machine. What s the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It s a "slimmed down" ...

Code Coverage Tools & Visual Studio 2008 Pro

Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...